Browse Source

Flake8 decided to find some more issues

Alec Nikolas Reiter 7 years ago
parent
commit
e4af8d877f

+ 1 - 1
flaskbb/auth/services/authentication.py

@@ -161,7 +161,7 @@ class PluginAuthenticationManager(AuthenticationManager):
                 raise StopAuthentication(_("Wrong username or password."))
             self.plugin_manager.hook.flaskbb_post_authenticate(user=user)
             return user
-        except StopAuthentication as e:
+        except StopAuthentication:
             self.plugin_manager.hook.flaskbb_authentication_failed(
                 identifier=identifier
             )

+ 1 - 1
flaskbb/auth/services/reauthentication.py

@@ -73,7 +73,7 @@ class PluginReauthenticationManager(ReauthenticateManager):
             if not result:
                 raise StopAuthentication(_("Wrong password."))
             self.plugin_manager.hook.flaskbb_post_reauth(user=user)
-        except StopAuthentication as e:
+        except StopAuthentication:
             self.plugin_manager.hook.flaskbb_reauth_failed(user=user)
             raise
         finally:

+ 1 - 1
flaskbb/cli/main.py

@@ -56,7 +56,7 @@ class FlaskBBGroup(FlaskGroup):
             app = ctx.ensure_object(ScriptInfo).load_app()
             app.pluggy.hook.flaskbb_cli(cli=self, app=app)
             self._loaded_flaskbb_plugins = True
-        except Exception as exc:
+        except Exception:
             logger.error(
                 "Error while loading CLI Plugins",
                 exc_info=traceback.format_exc()