Skip to content

Commit

Permalink
Merge pull request #29 from chadgates/bugfix/asyncmdn
Browse files Browse the repository at this point in the history
Async MDN sending fails
  • Loading branch information
abhishek-ram authored Apr 4, 2020
2 parents ffcb54a + b147f99 commit 05683a6
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 05683a6

Please sign in to comment.