diff --git a/course/page/upload.py b/course/page/upload.py index 782ffe3ee..b88e75755 100644 --- a/course/page/upload.py +++ b/course/page/upload.py @@ -83,7 +83,7 @@ def clean_uploaded_file(self): data = json.load(uploaded_file) # check for a notebook format of at least 4 - if int(data["nbformat"]) >= 4: + if int(data["nbformat"]) < 4: raise except Exception: raise forms.ValidationError(_("Uploaded file is not a "