forked from LBRYCommunity/lbry-sdk
silence invalid name errors when creating short_url
This commit is contained in:
parent
5157b2535b
commit
7bf96fd637
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue