Rafał Pitoń 8 лет назад
Родитель
Сommit
6e93c23f98
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      misago/users/avatars/gravatar.py

+ 2 - 3
misago/users/avatars/gravatar.py

@@ -24,10 +24,9 @@ def set_avatar(user):
     try:
         r = requests.get(GRAVATAR_URL % url_formats, timeout=5)
         if r.status_code != 200:
-            raise NoGravatarAvailable(
-                'gravatar is not available for this e-mail')
+            raise NoGravatarAvailable("gravatar is not available for this e-mail")
 
         image = Image.open(BytesIO(r.content))
         store.store_new_avatar(user, image)
     except requests.exceptions.RequestException:
-        raise GravatarError('failed to connect to gravatar servers')
+        raise GravatarError("failed to connect to gravatar servers")