silence invalid name errors when creating short_url

This commit is contained in:
Lex Berezhny 2020-07-12 18:07:12 -04:00
parent 5157b2535b
commit 7bf96fd637

View file

@ -18,8 +18,8 @@ def make_short_url(r):
try:
return f'{normalize_name(r["name"].decode())}#{r["shortestID"] or r["claimID"][::-1].hex()[0]}'
except UnicodeDecodeError:
print(f'failed making short url due to name parse error for claim_id: {r["claimID"][::-1].hex()}')
return 'FAILED'
# print(f'failed making short url due to name parse error for claim_id: {r["claimID"][::-1].hex()}')
return "INVALID NAME"
class FindShortestID: