Skip to content

Commit

Permalink
fix comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeolson committed Feb 15, 2024
1 parent ada52b4 commit 59d212b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/page/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 59d212b

Please sign in to comment.