Skip to content

Commit 2e118fd

Browse files
committed
Quality pass
1 parent 3a8cb9c commit 2e118fd

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

sonar/env.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def get(self, api, params=None, exit_on_error=True):
126126
else:
127127
r = requests.get(url=self.url + api, auth=self.credentials(), params=params)
128128
r.raise_for_status()
129-
except requests.exceptions.HTTPError as errh:
129+
except requests.exceptions.HTTPError:
130130
if exit_on_error:
131131
_log_and_exit(r.status_code)
132132
except requests.RequestException as e:
@@ -142,7 +142,7 @@ def post(self, api, params=None):
142142
else:
143143
r = requests.post(url=self.url + api, auth=self.credentials(), params=params)
144144
r.raise_for_status()
145-
except requests.exceptions.HTTPError as errh:
145+
except requests.exceptions.HTTPError:
146146
_log_and_exit(r.status_code)
147147
except requests.RequestException as e:
148148
util.exit_fatal(str(e), options.ERR_SONAR_API)
@@ -157,7 +157,7 @@ def delete(self, api, params=None):
157157
else:
158158
r = requests.delete(url=self.url + api, auth=self.credentials(), params=params)
159159
r.raise_for_status()
160-
except requests.exceptions.HTTPError as errh:
160+
except requests.exceptions.HTTPError:
161161
_log_and_exit(r.status_code)
162162
except requests.RequestException as e:
163163
util.exit_fatal(str(e), options.ERR_SONAR_API)

sonar/projects.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,6 @@ def __audit_binding_valid(self, audit_settings):
445445
else:
446446
util.exit_fatal(f"alm_settings/get_binding returning status code {resp.status_code}, exiting", options.ERR_SONAR_API)
447447

448-
449448
def audit(self, audit_settings):
450449
util.logger.debug("Auditing %s", str(self))
451450
return (

0 commit comments

Comments
 (0)