Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit e91b7d2

Browse files
committed
feature: git: github api: Fix error raising from error not e
Signed-off-by: John Andersen <[email protected]>
1 parent b251770 commit e91b7d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

feature/git/dffml_feature_git/github_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,15 +222,15 @@ def make_github_operations(
222222
# Update file content
223223
if old_content:
224224
fork.update_file(
225-
pygithub_fileobj.path,
225+
file_path,
226226
commit_message,
227227
content,
228228
pygithub_fileobj.sha,
229229
branch=new_branch_name,
230230
)
231231
else:
232232
fork.create_file(
233-
pygithub_fileobj.path,
233+
file_path,
234234
commit_message,
235235
content,
236236
branch=new_branch_name,
@@ -250,7 +250,7 @@ def make_github_operations(
250250

251251
except GithubException as error:
252252
raise Exception(
253-
f"Unable to complete operations for {repo_url} due to {e}"
253+
f"Unable to complete operations for {repo_url} due to {error}"
254254
) from error
255255

256256

0 commit comments

Comments
 (0)