Add extra check in dashboard

This commit is contained in:
2022-01-21 09:17:18 +00:00
parent 3f88ab3727
commit fcd34a11c2

View File

@@ -108,6 +108,8 @@ class Agora(object):
Post new trades to IRC and cache trades for the future. Post new trades to IRC and cache trades for the future.
""" """
current_trades = [] current_trades = []
if not dash:
return
if not dash.items(): if not dash.items():
return return
for contact_id, contact in dash.items(): for contact_id, contact in dash.items():