Skip to content
Permalink
Browse files

more correct errors

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Mar 20, 2013
1 parent 817b500 commit 78a5090a9500f06ee30d3e7d795bea7abdd497e3
Showing with 2 additions and 2 deletions.
  1. +2 −2 topaz/ast.py
@@ -137,7 +137,7 @@ def compile(self, ctx):
elif isinstance(ctx.symtable, BlockSymbolTable):
ctx.emit(consts.RETURN)
else:
raise NotImplementedError
raise SystemError


class Break(BaseStatement):
@@ -151,7 +151,7 @@ def compile(self, ctx):
elif isinstance(ctx.symtable, BlockSymbolTable):
ctx.emit(consts.RAISE_BREAK)
else:
raise NotImplementedError
raise SystemError


class TryExcept(Node):

0 comments on commit 78a5090

Please sign in to comment.
You can’t perform that action at this time.