mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-06-23 17:41:00 +00:00
Fix some warnings
This commit is contained in:
parent
6c5fa2a4ee
commit
522b8b03d7
2 changed files with 4 additions and 4 deletions
|
@ -37,8 +37,8 @@ def detect_languages(text):
|
|||
for i in range(len(d)):
|
||||
d[i].text_length = len(t)
|
||||
candidates.extend(d)
|
||||
except:
|
||||
pass
|
||||
except Exception as e:
|
||||
print(str(e))
|
||||
|
||||
# total read bytes of the provided text
|
||||
text_length_total = sum(c.text_length for c in candidates)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue