Add extra check in dashboard

This commit is contained in:
Mark Veidemanis 2022-01-21 09:17:18 +00:00
parent 3f88ab3727
commit fcd34a11c2
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 2 additions and 0 deletions

View File

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