Skip to content
Snippets Groups Projects

Format strings not supported in 3.5.3

Merged Roman Karwacik requested to merge romank/website:debug-moodle-auth-no-error into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -72,7 +72,7 @@ def finish_oauth():
@@ -72,7 +72,7 @@ def finish_oauth():
for course in data['Data']:
for course in data['Data']:
session['moodle_courses'].append(str(course['id']))
session['moodle_courses'].append(str(course['id']))
else:
else:
notify_admins('endpoint_exception', traceback=f"finish_oauth failed while getting moodle courses, data={str(data)}")
notify_admins('endpoint_exception', traceback="finish_oauth failed while getting moodle courses, data={}".format(str(data)))
raise
raise
del session['oauthscope']
del session['oauthscope']
oauthget('token', refresh_token=token['refresh_token'], grant_type='invalidate')
oauthget('token', refresh_token=token['refresh_token'], grant_type='invalidate')
Loading