Skip to content

Commit 63b3519

Browse files
Drop unused exception aliases
Signed-off-by: Andy Jakubowski <[email protected]>
1 parent 16222c2 commit 63b3519

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jupyterlab_deepnote/handlers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)