Skip to content

Commit

Permalink
5.2.3
Browse files Browse the repository at this point in the history
- Fix exception handling for `query_mta_sts_record`
- Fix exception handling for `query_smtp_tls_reporting_record`
  • Loading branch information
seanthegeek committed Jan 5, 2024
1 parent a1e26ab commit 237b1f0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

5.2.3
-----

- Fix exception handling for `query_mta_sts_record`
- Fix exception handling for `query_smtp_tls_reporting_record`


5.2.2
-----

Expand Down
2 changes: 1 addition & 1 deletion checkdmarc/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
See the License for the specific language governing permissions and
limitations under the License."""

__version__ = "5.2.2"
__version__ = "5.2.3"

OS = platform.system()
OS_RELEASE = platform.release()
Expand Down
4 changes: 2 additions & 2 deletions checkdmarc/mta_sts.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,9 @@ def query_mta_sts_record(domain: str,
raise MTASTSRecordNotFound(
f"The domain {domain} does not exist")
except Exception as error:
MTASTSRecordNotFound(error)
raise MTASTSRecordNotFound(error)
except Exception as error:
MTASTSRecordNotFound(error)
raise MTASTSRecordNotFound(error)

if sts_record is None:
raise MTASTSRecordNotFound(
Expand Down
4 changes: 3 additions & 1 deletion checkdmarc/smtp_tls_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ def query_smtp_tls_reporting_record(domain: str,
raise SMTPTLSReportingRecordNotFound(
f"The domain {domain} does not exist")
except Exception as error:
SMTPTLSReportingRecordNotFound(error)
raise SMTPTLSReportingRecordNotFound(error)
except Exception as error:
raise SMTPTLSReportingRecordNotFound(error)

if sts_record is None:
raise SMTPTLSReportingRecordNotFound(
Expand Down

0 comments on commit 237b1f0

Please sign in to comment.