Skip to content
Snippets Groups Projects
Commit dcea6ae7 authored by Jason Salyers's avatar Jason Salyers
Browse files

Merge branch 'autoclave' into 'autoclave'

Autoclave

See merge request blocktrades/hivemind!4
parents 0f1af7e6 7e762748
No related branches found
No related tags found
5 merge requests!456Release candidate v1 24,!230Setup monitoring with pghero,!135Enable postgres monitoring on CI server,!16Dk issue 3 concurrent block query rebase,!15Dk issue 3 concurrent block query
......@@ -58,9 +58,7 @@ class Accounts:
@classmethod
def get_id(cls, name):
"""Get account id by name. Throw if not found."""
if isinstance(name, list):
assert name[0] in cls._ids, "account does not exist or was not registered"
return cls._ids[name[0]]
assert isinstance(name, str), "account name should be string"
assert name in cls._ids, "account does not exist or was not registered"
return cls._ids[name]
......
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