metrics: Fix bug when running migrate on empty db
This commit is contained in:
parent
66a03a9dca
commit
8bdf9e1c8a
1 changed files with 4 additions and 1 deletions
|
@ -32,4 +32,7 @@ class ItemCountCollector(object):
|
||||||
|
|
||||||
yield counter
|
yield counter
|
||||||
|
|
||||||
REGISTRY.register(ItemCountCollector())
|
try:
|
||||||
|
REGISTRY.register(ItemCountCollector())
|
||||||
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
|
|
Loading…
Add table
Reference in a new issue