Make sure the fwds is a list
@@ -786,8 +786,9 @@ def get_items(account, param, fwds=None):
deliveriesToday = []
orderNum = []
domains = const.Amazon_Domains.split(",")
+ if isinstance(fwds, list):
for fwd in fwds:
- if fwds != '""':
+ if fwd != '""':
domains.append(fwd)
_LOGGER.debug("Amazon email adding %s to list", str(fwd))
