chore(lint): cleanup repeated cause exception in logging.exception replaced by helpful message (#10425)

This commit is contained in:
Bowen Liang authored and GitHub committed 2024-11-15 15:41:40 +08:00
1 parent db1d2aaff5
commit 51db59622c
47 files changed
+83 -72

No files matched your search

+1 -1
View File
@@ -679,7 +679,7 @@ class DatasetKeywordTable(db.Model):
return json.loads(keyword_table_text.decode("utf-8"), cls=SetDecoder)
return None
except Exception as e:
logging.exception(str(e))
logging.exception(f"Failed to load keyword table from file: {file_key}")
return None