Skip to content

Commit

Permalink
handle case when log file does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ilanschnell committed Apr 1, 2014
1 parent 6cf79f5 commit a32cda3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion conda/cli/main_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,11 @@ def execute(args, parser):
if args.revisions:
from conda.history import History

with History(prefix) as h:
h = History(prefix)
if isfile(h.path):
h.print_log()
else:
sys.stderr.write("No revision log found: %s\n" % h.path)
return

if args.canonical:
Expand Down

0 comments on commit a32cda3

Please sign in to comment.