Skip to content

Commit 60e302a

Browse files
committed
Avoid trying to open meeting documents with empty .uploaded_filename.
- Legacy-Id: 17417
1 parent 50e8918 commit 60e302a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/meeting/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def read_session_file(type, num, doc):
223223
#
224224
# FIXME: uploaded_filename should be replaced with a function call that computes names that are fixed
225225
path = os.path.join(settings.AGENDA_PATH, "%s/%s/%s" % (num, type, doc.uploaded_filename))
226-
if os.path.exists(path):
226+
if doc.uploaded_filename and os.path.exists(path):
227227
with io.open(path, 'rb') as f:
228228
return f.read(), path
229229
else:

0 commit comments

Comments
 (0)