Add try-catch to pop

pull/2110/head
Paul Pfeister 8 months ago
parent 78d255ee56
commit eeacf511dc

@ -9,7 +9,10 @@ with open("sherlock/resources/data.json", "r", encoding="utf-8") as data_file:
# Removes schema-specific keywords for proper processing # Removes schema-specific keywords for proper processing
social_networks: dict = dict(data) social_networks: dict = dict(data)
social_networks.pop('$schema') try:
social_networks.pop('$schema')
except:
pass
# Sort the social networks in alphanumeric order # Sort the social networks in alphanumeric order
social_networks: list = sorted(social_networks.items()) social_networks: list = sorted(social_networks.items())

Loading…
Cancel
Save