summaryrefslogtreecommitdiffstats
path: root/gitsrht/blueprints/repo.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitsrht/blueprints/repo.py')
-rw-r--r--gitsrht/blueprints/repo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitsrht/blueprints/repo.py b/gitsrht/blueprints/repo.py
index cb775e2..6f10028 100644
--- a/gitsrht/blueprints/repo.py
+++ b/gitsrht/blueprints/repo.py
@@ -150,7 +150,7 @@ def tree(owner, repo, ref, path):
for part in path:
if part == "":
continue
- if part not in tree:
+ if not tree or part not in tree:
abort(404)
entry = tree[part]
if entry.type == "blob":