Skip to content

Commit 607d7e6

Browse files
committed
Catch undefined http file_ids, caused by DummyReaders and unit tests
1 parent 62e757f commit 607d7e6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/classes/thumbnail.py

+5
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ def do_GET(self):
110110
file_frame = int(url_output[0][1])
111111
only_path = url_output[0][2]
112112

113+
# Catch undefined calls
114+
if file_id == "undefined":
115+
self.send_error(404)
116+
return
117+
113118
# Send headers
114119
if not only_path:
115120
self.send_header('Content-type', 'image/png')

0 commit comments

Comments
 (0)