Skip to content
Snippets Groups Projects
Commit 74461223 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

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

parent 8c1d9515
No related branches found
No related tags found
No related merge requests found
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment