Skip to content

Commit

Permalink
Better type checks
Browse files Browse the repository at this point in the history
  • Loading branch information
seanthegeek committed Aug 1, 2023
1 parent dbf7609 commit 8718b36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checkdmarc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,10 +1086,10 @@ def get_dmarc_tag_description(tag, value=None):
default = None
if "default" in tag_values[tag]:
default = tag_values[tag]["default"]
if type(value) == str and "values" in tag_values[tag] and value in \
if type(value) is str and "values" in tag_values[tag] and value in \
tag_values[tag]["values"][value]:
description = tag_values[tag]["values"][value]
elif type(value) == list and "values" in tag_values[tag]:
elif type(value) is list and "values" in tag_values[tag]:
new_description = ""
for value_value in value:
if value_value in tag_values[tag]["values"]:
Expand Down

0 comments on commit 8718b36

Please sign in to comment.