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:
def __init__(
self,
host="islay.bio.ed.ac.uk",
username="upload",
password="***REMOVED***",
host=None,
username=None,
password=None,
):
"""
Parameters
......@@ -51,6 +51,11 @@ class BridgeOmero:
username: 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.host = host
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