Permalink
Browse files
Fix typo/bug in error path of csv2html.py (#78)
- Loading branch information...
Showing
with
2 additions
and
2 deletions.
-
+2
−2
web/table/csv2html.py
|
|
@@ -299,8 +299,8 @@ def main(argv): |
|
|
if opts.schema:
|
|
|
try:
|
|
|
schema_f = open(opts.schema)
|
|
|
except IOError:
|
|
|
raise RuntimeError('Error opening %s: %s' % (opts.schema, f))
|
|
|
except IOError as e:
|
|
|
raise RuntimeError('Error opening %s: %s' % (opts.schema, e))
|
|
|
else:
|
|
|
schema_path = csv_path.replace('.csv', '.schema.csv')
|
|
|
log('schema path %s', schema_path)
|
|
|
|
0 comments on commit
3fd2924