Add default return val to pop (#2110)

pull/2003/merge
Matheus Felipe 8 months ago committed by GitHub
commit f6bb60881c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -153,10 +153,7 @@ class SitesInformation:
f"data file '{data_file_path}'." f"data file '{data_file_path}'."
) )
try: site_data.pop('$schema', None)
site_data.pop('$schema')
except:
pass
self.sites = {} self.sites = {}

@ -9,7 +9,7 @@ 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') social_networks.pop('$schema', None)
# 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