Commit b9e9863b authored by Morten Knutsen's avatar Morten Knutsen
Browse files

More robust file handle code

parent 0f9ebe3a
......@@ -23,6 +23,9 @@ class ScriptEngine():
self.current_script = None
def run(self, script):
if not os.path.isfile(script):
print >> sys.stderr, "No such file: %s" % script
return 1
try:
fh = open(script, "r")
except:
......
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