Skip to content

Commit

Permalink
logging successful importanize only when writing to files
Browse files Browse the repository at this point in the history
  • Loading branch information
miki725 committed May 3, 2017
1 parent 98f0108 commit bdff074
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions importanize/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,10 @@ def run(source, config, args, path=None):
else:
path.write_text(organized)

msg = 'Successfully importanized'
if path:
msg += ' {}'.format(path)
log.info(msg)
msg = 'Successfully importanized'
if path:
msg += ' {}'.format(path)
log.info(msg)

return organized

Expand Down

0 comments on commit bdff074

Please sign in to comment.