Commit 74461223 authored by Taddeus Kroes's avatar Taddeus Kroes

Now, when a non-existing file is opened, an exception is raised.

parent 8c1d9515
......@@ -123,6 +123,6 @@ def parse_file(filename):
content = open(filename).read()
yacc.parse(content)
except IOError:
print 'File "%s" could not be opened' % filename
raise Exception('File "%s" could not be opened' % filename)
return Block(statements)
Markdown is supported
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