Apply formatting
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user