Skip to content

Commit 751a4f2

Browse files
guard against the env not loading
1 parent 36bdaaa commit 751a4f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

marking_and_admin/marker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
MARKING_SPREADSHEET_ID = os.getenv("GOOGLE_SHEETS_KEY", "")
1818

1919

20-
if __name__ == "__main__":
20+
if __name__ == "__main__" and MARKING_SPREADSHEET_ID != "":
2121
do_the_marking(
2222
this_year="2023",
2323
rootdir="../StudentRepos",

0 commit comments

Comments
 (0)