jenkins-bot has submitted this change and it was merged.
Change subject: (bug 61231) use OSError as WindowsError does not exist on unix hosts ......................................................................
(bug 61231) use OSError as WindowsError does not exist on unix hosts
Change-Id: I8daea57bae5f296167956bd3f435ba2c93adff75 --- M pywikibot/version.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/version.py b/pywikibot/version.py index 1a63073..3691529 100644 --- a/pywikibot/version.py +++ b/pywikibot/version.py @@ -131,7 +131,7 @@ cmd = 'git' try: subprocess.Popen([cmd], stdout=subprocess.PIPE).communicate() - except WindowsError: + except OSError: # some windows git versions provide git.cmd instead of git.exe cmd = 'git.cmd'
pywikibot-commits@lists.wikimedia.org