diff --git a/hive/indexer/accounts.py b/hive/indexer/accounts.py index a9673acbbf9ac10b587144188eba5cfdeaac7618..76fa2b1f1f83c948a9965adceca088eb8fa7130f 100644 --- a/hive/indexer/accounts.py +++ b/hive/indexer/accounts.py @@ -58,6 +58,7 @@ class Accounts: @classmethod def get_id(cls, name): """Get account id by name. Throw if not found.""" + 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]