fix in email digest
diff --git a/erpnext/setup/doctype/email_digest/email_digest.py b/erpnext/setup/doctype/email_digest/email_digest.py
index 40472a2..351d672 100644
--- a/erpnext/setup/doctype/email_digest/email_digest.py
+++ b/erpnext/setup/doctype/email_digest/email_digest.py
@@ -580,7 +580,9 @@
"<span style='font-size: 16px; font-weight: normal'>%s</span>" \
% bank['name'],
currency_amount_str % (currency, fmt_money(bank.get('value')))
- ] for bank in result['bank_balance']
+ ] for bank in (isinstance(result['bank_balance'], list) and \
+ result['bank_balance'] or \
+ [result['bank_balance']])
]
}),
'idx': 400