Skip to content
Snippets Groups Projects
Commit bb9cab3e authored by Alán Muñoz's avatar Alán Muñoz
Browse files

change(omero): add assertion for invalid creds

parent 2228e8aa
No related branches found
No related tags found
No related merge requests found
...@@ -39,9 +39,9 @@ class BridgeOmero: ...@@ -39,9 +39,9 @@ class BridgeOmero:
def __init__( def __init__(
self, self,
host="islay.bio.ed.ac.uk", host=None,
username="upload", username=None,
password="***REMOVED***", password=None,
): ):
""" """
Parameters Parameters
...@@ -51,6 +51,11 @@ class BridgeOmero: ...@@ -51,6 +51,11 @@ class BridgeOmero:
username: string username: string
password : string password : string
""" """
# assert all((host, username, password)), str(f"Invalid credentials host:{host}, user:{username}, pass:{pass}")
assert all(
(host, username, password)
), f"Invalid credentials. host: {host}, user: {username}, pwd: {password}"
self.conn = None self.conn = None
self.host = host self.host = host
self.username = username self.username = 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