You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--- Logging error ---
Traceback (most recent call last):
File "/opt/conda/lib/python3.8/logging/__init__.py", line 1085, in emit
msg = self.format(record)
File "/opt/conda/lib/python3.8/logging/__init__.py", line 929, in format
return fmt.format(record)
File "/opt/conda/lib/python3.8/logging/__init__.py", line 668, in format
record.message = record.getMessage()
File "/opt/conda/lib/python3.8/logging/__init__.py", line 373, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "/opt/conda/lib/python3.8/threading.py", line 890, in _bootstrap
self._bootstrap_inner()
File "/opt/conda/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/home/user/./app/action.py", line 40, in <listcomp>
text = " ".join([simplemma.lemmatize(x, lang=('it','en')) for x in text.split(' ') if len(x)])
File "/opt/conda/lib/python3.8/site-packages/simplemma/simplemma.py", line 389, in lemmatize
LOGGER.debug(token, candidate, 'found in %s', i)
Any other packages seem to work just fine with my logging definition.
The text was updated successfully, but these errors were encountered:
Not sure necessarily if this problem should be addressed here, but I discovered it while using the package, so I thought I'd report.
In my app that uses simplemma, I have a logger configured like this:
But this causes errors, when it gets to line:
https://github.com/adbar/simplemma/blob/main/simplemma/simplemma.py#L389
Any other packages seem to work just fine with my logging definition.
The text was updated successfully, but these errors were encountered: