Commit 1c3a918c authored by dbarbera's avatar dbarbera
Browse files

Added error message to name errors

parent 3cdc39e5
...@@ -108,8 +108,7 @@ class Scope: ...@@ -108,8 +108,7 @@ class Scope:
if self.parent: if self.parent:
return self.parent.resolve(name) return self.parent.resolve(name)
else: else:
print name raise NameError("name '%s' is not defined" % name)
raise NameError
@singledispatch @singledispatch
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment