Apply formatting

This commit is contained in:
n07070
2026-11-13 02:46:05 +01:00
parent bfbee7dacb
commit df070ebd72
2 changed files with 16 additions and 16 deletions

View File

@@ -105,7 +105,9 @@ class Web:
image.save(os.path.join(self.app.config["UPLOAD_FOLDER"], filename))
except OSError as e:
self.app.logger.error("Could not save file %s", e)
raise RuntimeError("An OS error occured while uploading this file : " + str(e)) from e
raise RuntimeError(
"An OS error occured while uploading this file : " + str(e)
) from e
self.app.logger.debug(
"File saved to "
@@ -113,9 +115,7 @@ class Web:
)
return True
self.app.logger.error(
"Could not save file because the filename is forbidden"
)
self.app.logger.error("Could not save file because the filename is forbidden")
raise RuntimeError("This file type is forbidden.")
def get_queue_state(self):