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
No related branches found
No related tags found
1 merge request!3F fsm
Pipeline #11957 passed
......@@ -32,7 +32,10 @@ from caosdb.common.utils import xml2str
from caosdb.connection.connection import get_connection
from caosdb.exceptions import (HTTPClientError,
HTTPForbiddenError,
HTTPResourceNotFoundError)
HTTPResourceNotFoundError,
EntityDoesNotExistError,
ServerConfigurationException,
)
def set_server_property(key, value):
......
......@@ -615,8 +615,7 @@ class _Connection(object): # pylint: disable=useless-object-inheritance
def get_username(self):
"""
Return the username of the current connection.
Shortcut for: get_connection()._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.
Finish editing this message first!
Please register or to comment