Commit 48276c9f authored by marcus-tun's avatar marcus-tun
Browse files

placed assertion write into try/except statement

parent 1c33f52e
......@@ -99,9 +99,12 @@ def handler(req):
assertion_url ='https://' + req.hostname + '/assertions/' + assertion_hash
# write to file
file=open(assertion_path, 'w')
file.write(encrypted_assertion)
file.close()
try:
file=open(assertion_path, 'w')
file.write(encrypted_assertion)
file.close()
except:
req.write("could not save assertion")
req.write("url=%s" % assertion_url)
......
Markdown is supported
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