We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1b684e commit a6d7f77Copy full SHA for a6d7f77
core/storages/local.py
@@ -89,7 +89,7 @@ async def express(
89
path = os.path.join(self.path, hash[:2], hash)
90
if not os.path.exists(path):
91
response = web.HTTPNotFound()
92
- response
+ return response
93
try:
94
file_size = os.path.getsize(path)
95
response = web.FileResponse(path, status=200)
@@ -98,9 +98,9 @@ async def express(
98
counter["hits"] += 1
99
return response
100
except Exception as e:
101
+ response = web.HTTPError(text=e)
102
logger.debug(e)
- return
103
-
104
async def recycleFiles(self, files: FileList) -> None:
105
delete_files = []
106
0 commit comments