From: Michael Tremer Date: Wed, 17 Oct 2018 01:08:14 +0000 (+0100) Subject: people: Fix saving profile without editing avatar X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9bbf48b8ebd3c9919415aeaabfa81967605f5989;p=ipfire.org.git people: Fix saving profile without editing avatar Signed-off-by: Michael Tremer --- diff --git a/src/web/people.py b/src/web/people.py index e54753d8..d5fae5aa 100644 --- a/src/web/people.py +++ b/src/web/people.py @@ -160,7 +160,7 @@ class UserEditHandler(base.BaseHandler): raise tornado.web.HTTPError(400, "Avatar is not an image file: %s" % mimetype) account.upload_avatar(data) - except ValueError: + except TypeError: pass # Email