Cura/cura/OAuth2
Ghostkeeper e52dc56a64
Prevent crashing on PermissionError when importing http.server (#7095)
* Fix PermissionError when importing http.server

Instead of crashing, now it'll just not start the server. This means that you won't be able to receive the response from the log-in so you won't be able to log in. The browser gives an error that it can't find the page on localhost. But at least it doesn't crash.

Fixes crash CURA-3Q.

* Log an error when the HTTP server can't be started

Contributes to crash CURA-3Q.

* Indicate that types are optional

Attempt to fix the typing issue with MyPy. I can't run this locally so the CI server will have to tell me if this fixed it.

Contributes to Sentry issue CURA-3Q.
2020-02-17 17:01:11 +01:00
..
__init__.py Fix code style and documentation formatting 2019-02-08 11:10:43 +01:00
AuthorizationHelpers.py Increase size of the verificationCode 2020-01-31 15:00:03 +01:00
AuthorizationRequestHandler.py Use state in AuthorizationService 2020-01-31 16:11:59 +01:00
AuthorizationRequestServer.py Add missing ignore 2020-01-31 16:24:46 +01:00
AuthorizationService.py Use state in AuthorizationService 2020-01-31 16:11:59 +01:00
LocalAuthorizationServer.py Prevent crashing on PermissionError when importing http.server (#7095) 2020-02-17 17:01:11 +01:00
Models.py Add some missing typing 2020-01-10 14:58:53 +01:00