Skip to content

Commit

Permalink
Async MDN sending fails in case original message was received from
Browse files Browse the repository at this point in the history
an unknown partner.
  • Loading branch information
Wassilios Lytras committed Mar 31, 2020
1 parent cac00f6 commit b147f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyas2/management/commands/manageas2server.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def handle(self, *args, **options):
try:
# Set http basic auth if enabled in the partner profile
auth = None
if pending_mdn.message.partner.http_auth:
if pending_mdn.message.partner and pending_mdn.message.partner.http_auth:
auth = (pending_mdn.message.partner.http_auth_user,
pending_mdn.message.partner.http_auth_pass)

Expand Down

0 comments on commit b147f99

Please sign in to comment.