Skip to content

Commit 5adf473

Browse files
committed
lint fixes
1 parent a4c322a commit 5adf473

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

gitea_info.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ def get_parent_pr(org, repo):
174174
page = 1
175175
while True:
176176
try:
177-
repo_resp = session.get(f"{GITEA_API_ENDPOINT}/repos/{org}/{repo}/pulls?state=all&page={page}"
178-
f"&limit=1000&token={gitea_token}")
177+
repo_resp = session.get(f"{GITEA_API_ENDPOINT}/repos/{org}/{repo}/pulls?state=all&page="
178+
f"{page}&limit=1000&token={gitea_token}")
179179
repo_resp.raise_for_status()
180180
except requests.exceptions.RequestException as e:
181181
logging.error("Error occurred while trying to get repo pull requests: %s", e)

github_info.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ def extract_pull_links(cur, table_name):
5959
pull_links = [row[0] for row in cur.fetchall()]
6060
return pull_links
6161
except Exception as e:
62-
logging.info("Extracting pull links: an error occurred while extracting pull links from %s: %s", table_name, str(e))
62+
logging.info("Extracting pull links: an error occurred while extracting pull links from %s: %s",
63+
table_name, str(e))
6364
return []
6465

6566

0 commit comments

Comments
 (0)