diff --git a/src/caosdb/common/models.py b/src/caosdb/common/models.py index 045c5002d17e55e9b9c612a5709332212dfcfae1..84cdb96b4c0ae359dbeb249b9ae0744a06aa87e8 100644 --- a/src/caosdb/common/models.py +++ b/src/caosdb/common/models.py @@ -45,7 +45,8 @@ from caosdb.configuration import get_config from caosdb.connection.connection import get_connection from caosdb.connection.encode import MultipartParam, multipart_encode from caosdb.exceptions import (AmbiguityException, AuthorizationException, - CaosDBException, ConsistencyError, + CaosDBException, ConnectionException, + ConsistencyError, EntityDoesNotExistError, EntityError, EntityHasNoDatatypeError, TransactionError, UniqueNamesError, UnqualifiedParentsError, @@ -3454,7 +3455,12 @@ class Info(): def sync(self): c = get_connection() - http_response = c.retrieve(["Info"]) + try: + http_response = c.retrieve(["Info"]) + except ConnectionException as conn_e: + print(conn_e) + return + xml = etree.fromstring(http_response.read()) for e in xml: