Fix some warnings

This commit is contained in:
Piero Toffanin 2023-10-30 00:09:52 -04:00
parent 6c5fa2a4ee
commit 522b8b03d7
2 changed files with 4 additions and 4 deletions

View file

@ -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)