Skip to content

Commit c3731c8

Browse files
committed
Fix issue #41: handle incorrect fixer names in futurize
1 parent abac3b6 commit c3731c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libfuturize/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ def main(args=None):
236236
"\n".join(" " + myf for myf in found),
237237
file=sys.stderr)
238238
return 2
239+
elif len(found) == 0:
240+
print("Unknown fixer. Use --list-fixes or -l for a list.",
241+
file=sys.stderr)
242+
return 2
239243
explicit.add(found[0])
240244
requested = avail_fixes.union(explicit) if all_present else explicit
241245
else:

0 commit comments

Comments
 (0)