Adjust logic on get_tracking
@@ -607,8 +607,7 @@ def get_tracking(sdata, account, format=None):
"Found tracking number in email subject: (%s)",
found[0],
)
- if found[0] in tracking:
- continue
+ if found[0] not in tracking:
tracking.append(found[0])
continue
@@ -622,8 +621,7 @@ def get_tracking(sdata, account, format=None):
found[0] = found[0].split(" ")[1]
_LOGGER.debug("Found tracking number in email body: %s", found[0])
- if found[0] in tracking:
- continue
+ if found[0] not in tracking:
tracking.append(found[0])
continue
