Skip to content

Commit 047ca77

Browse files
committed
Remove redundant error check in jp
LexerError is a ParseError so this clause isn't needed.
1 parent cad5978 commit 047ca77

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

bin/jp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ def main():
5151
except exceptions.UnknownFunctionError as e:
5252
sys.stderr.write("unknown-function: %s\n" % e)
5353
return 1
54-
except exceptions.LexerError as e:
55-
sys.stderr.write("syntax-error: %s\n" % e)
56-
return 1
5754
except exceptions.ParseError as e:
5855
sys.stderr.write("syntax-error: %s\n" % e)
5956
return 1

0 commit comments

Comments
 (0)