Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/sherlock/commit/eeacf511dc79f000d6c43113a4ba03d26b4a5201?style=unified&whitespace=ignore-all You should set ROOT_URL correctly, otherwise the web may not work correctly.

Add try-catch to pop

pull/2110/head
Paul Pfeister 11 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
social_networks: dict = dict(data)
try:
social_networks.pop('$schema')
except:
pass
# Sort the social networks in alphanumeric order
social_networks: list = sorted(social_networks.items())

Loading…
Cancel
Save