main: Remove "None" from error message about importing stdin.

This commit is contained in:
Brett Smith 2017-10-26 12:05:57 -04:00
parent cc8da9392e
commit 6295952a08

View file

@ -76,7 +76,7 @@ def main(arglist=None, stdout=sys.stdout, stderr=sys.stderr):
if error is None:
logger.info("%s: imported", input_path)
else:
logger.warning("%s: failed to import: %s", input_path, error)
logger.warning("%s: failed to import: %s", input_path or error.path, error)
failures += 1
if failures == 0:
return 0