mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
cath all exceptions
This commit is contained in:
parent
1ad514e416
commit
483ba3b0d6
1 changed files with 2 additions and 0 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue