cath all exceptions

This commit is contained in:
iLLiCiTiT 2021-04-29 13:39:50 +02:00
parent 1ad514e416
commit 483ba3b0d6

View file

@ -139,6 +139,8 @@ def validate_mongo_connection(cnx: str) -> (bool, str):
return False, f"Invalid port specified {parsed.port}"
except InvalidURI as e:
return False, str(e)
except Exception as exc:
return False, str(exc)
else:
return True, "Connection is successful"