Fix cauthreceiver for flask in python3

This has been logging errors since forever -- but still worked in
practice :)
This commit is contained in:
Magnus Hagander
2024-03-25 18:40:27 +01:00
parent 88cdd6bc01
commit a91abc5800

View File

@ -71,7 +71,7 @@ def application(environ, start_response):
('Content-type', 'text/plain'), ('Content-type', 'text/plain'),
]) ])
return [ return [
"OK", b"OK",
] ]
except Exception as e: except Exception as e:
print("Error receiving cauth call: {}".format(e), file=sys.stderr) print("Error receiving cauth call: {}".format(e), file=sys.stderr)
@ -81,5 +81,5 @@ def application(environ, start_response):
]) ])
return [ return [
"An internal server error occurred.\n", b"An internal server error occurred.\n",
] ]