Skip to content

Commit

Permalink
Pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Jun 1, 2024
1 parent 4f714f7 commit 5c78290
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/asfdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ def process_distributions(project, src, sort_revision, debug):
dtms = {}
versions = {}
revisions = {}
keys = None # ensure defined before use

# read the output from svn ls -Rv
url = f'https://dist.apache.org/repos/dist/release/{project}'
Expand Down Expand Up @@ -579,7 +580,8 @@ def twitter_auth():
def connect_to_endpoint(url, headers):
response = requests.request('GET', url, headers=headers, timeout=REQUESTS_TIMEOUT)
if response.status_code != 200:
raise Exception(response.status_code, response.text)
# TODO: choose better exception
raise Exception(response.status_code, response.text) # pylint: broad-exception-raised
return response.json()


Expand Down

0 comments on commit 5c78290

Please sign in to comment.