From 2d159f3052e46f308488b899674b0f273f336a20 Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Tue, 30 Mar 2021 21:36:33 +0200
Subject: [PATCH] fix imports and styling

---
 src/caosdb/common/administration.py | 5 ++++-
 src/caosdb/connection/connection.py | 3 +--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/caosdb/common/administration.py b/src/caosdb/common/administration.py
index 5b7a098a..e7ba9418 100644
--- a/src/caosdb/common/administration.py
+++ b/src/caosdb/common/administration.py
@@ -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):
diff --git a/src/caosdb/connection/connection.py b/src/caosdb/connection/connection.py
index bcad5d7c..2cb31f42 100644
--- a/src/caosdb/connection/connection.py
+++ b/src/caosdb/connection/connection.py
@@ -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
-
-- 
GitLab