Merge pull request #1021 from simple-login/ac-verp-unpack
Fix: check if verp return is None before unpack
This commit is contained in:
commit
f14e003a38
|
@ -59,7 +59,10 @@ class ProviderComplaintOrigin(ABC):
|
||||||
if not return_path:
|
if not return_path:
|
||||||
return None
|
return None
|
||||||
_, return_path = parse_full_address(get_header_unicode(return_path))
|
_, return_path = parse_full_address(get_header_unicode(return_path))
|
||||||
verp_type, email_log_id = get_verp_info_from_email(return_path)
|
verp_data = get_verp_info_from_email(return_path)
|
||||||
|
if not verp_data:
|
||||||
|
return None
|
||||||
|
verp_type, email_log_id = verp_data
|
||||||
if verp_type == VerpType.transactional:
|
if verp_type == VerpType.transactional:
|
||||||
return None
|
return None
|
||||||
email_log = EmailLog.get_by(id=email_log_id)
|
email_log = EmailLog.get_by(id=email_log_id)
|
||||||
|
|
Loading…
Reference in a new issue