Commit 511c6b50 authored by Kiste's avatar Kiste
Browse files

Fix

parent 22fca2ae
......@@ -144,8 +144,8 @@ def get_semester(path, session, blacklist, timestamp, cursemester):
if course['title'] in blacklist:
continue
mkdir(path + '/' + course['title'])
json_new = session.get(BASEURL + '/documents/' + course['course_id'] + '/new' + timestamp).json()
try:
json_new = session.get(BASEURL + '/documents/' + course['course_id'] + '/new' + timestamp).json()
for document in json_new['documents']:
get_file(path, session, course, document)
except json.decoder.JSONDecodeError:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment