From 793f78c9a6bdaaf6d9693b60bb89d6a3f41aec05 Mon Sep 17 00:00:00 2001 From: EddieJones Date: Mon, 23 Dec 2019 19:56:11 +0800 Subject: [PATCH] import class APIError fix: if an email is registered, then prompt 'Email is already in use'. in register page, if you input an email that has been registered, the website will prompt 'Email is already in use'. --- www/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/handlers.py b/www/handlers.py index af2ea07..1f38560 100644 --- a/www/handlers.py +++ b/www/handlers.py @@ -12,7 +12,7 @@ from aiohttp import web from coroweb import get, post -from apis import Page, APIValueError, APIResourceNotFoundError +from apis import Page, APIValueError, APIResourceNotFoundError, APIError from models import User, Comment, Blog, next_id from config import configs