Skip to content

Commit

Permalink
fix: [update v2.6] fix faup encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Dec 17, 2019
1 parent ef55024 commit 7420ee2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion update/v2.6/Update_screenshots.py
Expand Up @@ -23,7 +23,12 @@ def get_all_item(screenshot_sha256):
def sanitize_domain(domain):
faup.decode(domain)
domain_sanitized = faup.get()
return domain_sanitized['domain'].lower()
domain_sanitized = domain_sanitized['domain']
try:
domain_sanitized = domain_sanitized.decode()
except:
pass
return domain_sanitized.lower()

def update_db(screenshot_sha256):
screenshot_items = get_all_item(screenshot_sha256)
Expand Down

0 comments on commit 7420ee2

Please sign in to comment.