Skip to content

Commit dd8405c

Browse files

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

jupyterlab_git/handlers.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ def prepare(self):
4646
excluded_paths = self.git.excluded_paths
4747
for excluded_path in excluded_paths:
4848
if fnmatch.fnmatchcase(path, excluded_path):
49-
self.set_status(404)
50-
self.finish()
51-
break
49+
raise tornado.web.HTTPError(404)
5250

5351
@functools.lru_cache()
5452
def url2localpath(

0 commit comments

Comments
 (0)