Skip to content

Commit

Permalink
Issue #2: Add logging logic when the setting is invalid.
Browse files Browse the repository at this point in the history
  • Loading branch information
gh640 committed Mar 19, 2018
1 parent e89dff1 commit a0bda29
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions PypiPackageInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,12 @@ def _get_cache_max_count(self):
try:
return int(max_count)
except ValueError as e:
print(
'`cache_max_count` must be an integer. '
'The value is set to "{}". '
'The default value {} is used instead.'
.format(max_count, CACHE_MAX_COUNT_DEFAULT)
)
return CACHE_MAX_COUNT_DEFAULT


Expand Down

0 comments on commit a0bda29

Please sign in to comment.