From 7bf96fd6377a41cd5e420016f717f4e78cf39599 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sun, 12 Jul 2020 18:07:12 -0400 Subject: [PATCH] silence invalid name errors when creating short_url --- lbry/blockchain/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbry/blockchain/database.py b/lbry/blockchain/database.py index 2257db211..9360f1553 100644 --- a/lbry/blockchain/database.py +++ b/lbry/blockchain/database.py @@ -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: