Add nicer exception handling for OAuth logins
authorMagnus Hagander <magnus@hagander.net>
Thu, 31 Aug 2017 07:58:55 +0000 (09:58 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 31 Aug 2017 08:00:40 +0000 (10:00 +0200)
commit1b6d047610953c9e88dd79a4c114f773a2375ce6
tree399ef584087a2e0ab65ae967e02ecc1e3a83adfe
parent87657036cc9d2cc51d54532149fe755090f3dea2
Add nicer exception handling for OAuth logins

Instead of throwing Internal Server Error at the user, throw a custom
exception that can actually give a slightly less useless error message.
pgweb/account/oauthclient.py