Skip to content
Snippets Groups Projects
Verified Commit 2d159f30 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

fix imports and styling

parent be865c96
Branches
Tags
1 merge request!3F fsm
Pipeline #11957 passed
...@@ -32,7 +32,10 @@ from caosdb.common.utils import xml2str ...@@ -32,7 +32,10 @@ from caosdb.common.utils import xml2str
from caosdb.connection.connection import get_connection from caosdb.connection.connection import get_connection
from caosdb.exceptions import (HTTPClientError, from caosdb.exceptions import (HTTPClientError,
HTTPForbiddenError, HTTPForbiddenError,
HTTPResourceNotFoundError) HTTPResourceNotFoundError,
EntityDoesNotExistError,
ServerConfigurationException,
)
def set_server_property(key, value): def set_server_property(key, value):
......
...@@ -615,8 +615,7 @@ class _Connection(object): # pylint: disable=useless-object-inheritance ...@@ -615,8 +615,7 @@ class _Connection(object): # pylint: disable=useless-object-inheritance
def get_username(self): def get_username(self):
""" """
Return the username of the current connection. Return the username of the current connection.
Shortcut for: get_connection()._authenticator._credentials_provider.username Shortcut for: get_connection()._authenticator._credentials_provider.username
""" """
return self._authenticator._credentials_provider.username return self._authenticator._credentials_provider.username
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment