From 852aa41ab774a18973eaccedc242ec8a46fadd77 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Wed, 19 Aug 2020 22:47:03 +0200 Subject: [PATCH] Remove global flake8 override --- plugins/git/gitlab_statistics | 4 +--- plugins/mysql/mysql_audit | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/git/gitlab_statistics b/plugins/git/gitlab_statistics index 7ed144d2..7a76bf97 100755 --- a/plugins/git/gitlab_statistics +++ b/plugins/git/gitlab_statistics @@ -64,7 +64,7 @@ def reqjson(): try: raw_data = urllib.request.urlopen(url) return json.loads(raw_data) - except IOError as e: + except IOError: print("Cannot reach the GitLab API endpoint.", file=sys.stderr) exit(1) @@ -105,5 +105,3 @@ if len(sys.argv) >= 2: fetch() else: fetch() - -# flake8: noqa: E265 diff --git a/plugins/mysql/mysql_audit b/plugins/mysql/mysql_audit index 1d5343a6..14a3878a 100755 --- a/plugins/mysql/mysql_audit +++ b/plugins/mysql/mysql_audit @@ -185,5 +185,3 @@ elif len(sys.argv) == 2 and sys.argv[1] == "config": configure() else: fetch() - -# flake8: noqa: E265