chore: apply ruff's pyflakes linter rules (#2420)

This commit is contained in:
Bowen Liang 2024-02-08 14:11:10 +08:00 • committed by GitHub
commit 14a19a3da9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 91 additions and 86 deletions

View file

@ -32,7 +32,7 @@ class ToolFilePreviewApi(Resource):
)
if not result:
raise NotFound(f'file is not found')
raise NotFound('file is not found')
generator, mimetype = result
except Exception: