Skip to content

Commit 0cefc00

Browse files
Merge pull request #3756 from boegel/fix_git_push_err_check
avoid checking msg attribute of GitCommandError
2 parents 70ebcc5 + 0bde82d commit 0cefc00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easybuild/tools/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2025,7 +2025,7 @@ def check_github():
20252025
ver, req_ver = git.__version__, '1.0'
20262026
if LooseVersion(ver) < LooseVersion(req_ver):
20272027
check_res = "FAIL (GitPython version %s is too old, should be version %s or newer)" % (ver, req_ver)
2028-
elif "Could not read from remote repository" in push_err.msg:
2028+
elif "Could not read from remote repository" in str(push_err):
20292029
check_res = "FAIL (GitHub SSH key missing? %s)" % push_err
20302030
else:
20312031
check_res = "FAIL (unexpected exception: %s)" % push_err

0 commit comments

Comments
 (0)