Skip to content

Commit

Permalink
fix on log message
Browse files Browse the repository at this point in the history
  • Loading branch information
ishepard committed Feb 28, 2020
1 parent 6850535 commit e75cbe1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pydriller/utils/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ def check_starting_commit(self):
try:
self.set_value('from_commit', self.get("git_repo").get_commit(
self.get('from_commit')).hash)
except BadName:
except Exception:
raise Exception("The commit {} defined in the 'from_tag' "
"or 'from_commit' filter does "
"not exist".format(self.get('single')))
"not exist".format(self.get('from_commit')))

def check_ending_commit(self):
"""
Expand All @@ -167,10 +167,10 @@ def check_ending_commit(self):
try:
self.set_value('to_commit', self.get("git_repo").get_commit(
self.get('to_commit')).hash)
except BadName as e:
except Exception:
raise Exception("The commit {} defined in the 'to_tag' "
"or 'to_commit' filter does "
"not exist".format(self.get('single')))
"not exist".format(self.get('to_commit')))

@staticmethod
def only_one_filter(arr):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def read_reqs(filename: str):
long_description=long_description,
author='Davide Spadini',
author_email='[email protected]',
version='1.11.1',
version='1.11.2',
packages=find_packages('.'),
url='https://github.com/ishepard/pydriller',
license='Apache License',
Expand Down

0 comments on commit e75cbe1

Please sign in to comment.