From 2c0de3760e6d0e32664f28c016fd7bff48c505a3 Mon Sep 17 00:00:00 2001
From: Dariusz Kedzierski <dkedzierski@syncad.com>
Date: Tue, 5 May 2020 20:22:49 +0200
Subject: [PATCH] Fix: assert for str type in get_id argument

---
 hive/indexer/accounts.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hive/indexer/accounts.py b/hive/indexer/accounts.py
index a9673acbb..76fa2b1f1 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]
 
-- 
GitLab