Skip to content

Commit

Permalink
Merge pull request #75 from lowell80/fix-vcs-handle-errno13
Browse files Browse the repository at this point in the history
Enhance missing VCS command detection (errno 13)
  • Loading branch information
c4urself committed Aug 25, 2019
2 parents b6863ad + 10dd277 commit a0fb7b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bumpversion/vcs.py
Expand Up @@ -2,6 +2,7 @@

from __future__ import unicode_literals, print_function

import errno
import logging
import os
import subprocess
Expand Down Expand Up @@ -51,8 +52,7 @@ def is_usable(cls):
== 0
)
except OSError as e:
if e.errno == 2:
# mercurial is not installed then, ok.
if e.errno in (errno.ENOENT, errno.EACCES):
return False
raise

Expand Down

0 comments on commit a0fb7b3

Please sign in to comment.