summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Tools/bgen/bgen/scantools.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tools/bgen/bgen/scantools.py b/Tools/bgen/bgen/scantools.py
index 89447e1..5800681 100644
--- a/Tools/bgen/bgen/scantools.py
+++ b/Tools/bgen/bgen/scantools.py
@@ -296,7 +296,10 @@ if missing: raise "Missing Types"
self.defsmine = mine
def openoutput(self, filename):
- file = open(filename, 'w')
+ try:
+ file = open(filename, 'w')
+ except IOError, arg:
+ raise IOError, (filename, arg)
self.setfiletype(filename)
return file