newdle icon indicating copy to clipboard operation
newdle copied to clipboard

added babel for messages extraction

Open lucvin opened this issue 9 months ago • 2 comments

#503

lucvin avatar Apr 15 '25 09:04 lucvin

Hi, i've fixed the extension error and now i have this error on the git ci and cannot commit

newdle/core/app.py:81:9: LOG004 .exception() call outside exception handlers | 79 | # message or the debugger while in development mode. 80 | raise # noqa: PLE0704 81 | app.logger.exception('Request failed') | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ LOG004 82 | return jsonify(error='internal_error'), 500 | = help: Replace with .error()

this has always been there and i don't know why it's bothering him now but it might need to be changed https://docs.astral.sh/ruff/rules/log-exception-outside-except-handler/

lucvin avatar May 14 '25 10:05 lucvin

Maybe just add a noqa for now?

tomasr8 avatar May 22 '25 13:05 tomasr8