Skip to content

Commit 770a7ba

Browse files
committed
Fix ref error, parsers should be accessed with scriptextension[1:] (as oppose to scriptextension)
1 parent 4de623a commit 770a7ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/pythonect

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ try:
3434
import readline
3535

3636
except ImportError:
37-
37+
3838
# Windows ...
3939

4040
pass
@@ -260,7 +260,7 @@ def main(argv=sys.argv):
260260

261261
if content is None:
262262

263-
raise Exception("Unable to parse %s with %s" % (scriptname, parsers[scriptextension].__repr__()))
263+
raise Exception("Unable to parse %s with %s" % (scriptname, parsers[scriptextension[1:]].__repr__()))
264264

265265
else:
266266

0 commit comments

Comments
 (0)