Skip to content

Commit

Permalink
use OSError instead of WindowsError
Browse files Browse the repository at this point in the history
  • Loading branch information
jchopard committed Feb 15, 2018
1 parent 9c0634e commit 40ea7e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkglts/option/git/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def environment_extensions(cfg):
commiters = re.findall(r'Author: (.* <.*@.*>)\n', unidecode(log))
ccs = [(commiters.count(name), name) for name in set(commiters)]
contributors = [name for nb, name in sorted(ccs, reverse=True)]
except (KeyError, WindowsError):
except (KeyError, OSError):
LOGGER.warning("Please add git to your $PATH")
contributors = ["I failed to construct the contributor list"]
except subprocess.CalledProcessError as err:
Expand Down

0 comments on commit 40ea7e0

Please sign in to comment.