File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,17 +32,17 @@ async def get(self):
3232 path , type = "file" , format = "text" , content = True
3333 )
3434 )
35- except FileNotFoundError as e :
35+ except FileNotFoundError :
3636 self .set_status (404 )
3737 self .set_header ("Content-Type" , "application/json" )
3838 self .finish (json .dumps ({"code" : 404 , "message" : "File not found" }))
3939 return
40- except PermissionError as e :
40+ except PermissionError :
4141 self .set_status (403 )
4242 self .set_header ("Content-Type" , "application/json" )
4343 self .finish (json .dumps ({"code" : 403 , "message" : "Permission denied" }))
4444 return
45- except Exception as e :
45+ except Exception :
4646 self .log .exception ("Error retrieving file" )
4747 self .set_status (500 )
4848 self .set_header ("Content-Type" , "application/json" )
You can’t perform that action at this time.
0 commit comments