Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andresdelfino committed May 1, 2018
1 parent 84f9e3c commit c2223d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fades/main.py
Expand Up @@ -178,15 +178,15 @@ def go():
usage_manager = envbuilder.UsageManager(os.path.join(helpers.get_basedir(), 'usage_stats'),
venvscache)

rc = 0
if args.clean_unused_venvs:
try:
max_days_to_keep = int(args.clean_unused_venvs)
except ValueError:
logger.error("clean_unused_venvs must be an integer.")
raise
raise FadesError('clean_unused_venvs not an integer')

usage_manager.clean_unused_venvs(max_days_to_keep)
return 0

uuid = args.remove
if uuid:
Expand Down
2 changes: 1 addition & 1 deletion testdev.bat
@@ -1,6 +1,6 @@
@echo off

rem Copyright 2014-2016 Facundo Batista, Nicolás Demarchi
rem Copyright 2018 Facundo Batista, Nicolás Demarchi

if not [%*] == [] (
set TARGET_TESTS="%*"
Expand Down

0 comments on commit c2223d1

Please sign in to comment.