Skip to content

Added Timeout Exeption - #9

Open
EJLN9818 wants to merge 1 commit into
masterfrom
Added_Timeout_Exeption
Open

Added Timeout Exeption#9
EJLN9818 wants to merge 1 commit into
masterfrom
Added_Timeout_Exeption

Conversation

@EJLN9818

Copy link
Copy Markdown

No description provided.

@EJLN9818
EJLN9818 requested a review from felipe3dfx August 23, 2021 22:15
@EJLN9818
EJLN9818 force-pushed the Added_Timeout_Exeption branch from 4b12b2d to 837c86a Compare August 23, 2021 22:35
Comment thread setup.py Outdated
Comment thread ax3_email/tasks.py Outdated
count += 1
logger.info('Email sent to %s', message.to)
except (SMTPException, SMTPServerDisconnected) as exc:
except (SMTPException, SMTPServerDisconnected, RequestException) as exc:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This handle all requests exceptions

Suggested change
except (SMTPException, SMTPServerDisconnected, RequestException) as exc:
except (requests.exceptions.RequestException) as exc:

Comment thread CHANGELOG.md Outdated
@EJLN9818
EJLN9818 force-pushed the Added_Timeout_Exeption branch 3 times, most recently from b420b1c to 74ac0b3 Compare August 24, 2021 16:45
@EJLN9818
EJLN9818 force-pushed the Added_Timeout_Exeption branch from 74ac0b3 to cd8d035 Compare August 24, 2021 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants