Skip to content

Commit c7de0e7

Browse files
fchapotonjarofgreen
authored andcommitted
various fixes
#459
1 parent 1a534d4 commit c7de0e7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010

1111
- Some typos in docs, comments and examples
1212
- Put back some translations that were removed
13+
- Minor python tidyups
1314
- Avoid deprecation warning from the ijson package. https://github.com/OpenDataServices/flatten-tool/pull/458
1415

1516
### Removed

flattentool/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def main():
364364
try:
365365
# Note: Ensures that empty arguments are not passed to the create_template function
366366
create_template(**kwargs_from_parsed_args(args))
367-
except (OSError, IOError) as e:
367+
except OSError as e:
368368
print(str(e))
369369
return
370370
elif args.subparser_name == "flatten":

flattentool/input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ def read_sheets(self):
731731
for sheet in self.exclude_sheets or []:
732732
self.sheet_names_map.pop(sheet, None)
733733

734-
sheet_names = list(sheet for sheet in self.sheet_names_map.keys())
734+
sheet_names = list(self.sheet_names_map.keys())
735735
self.sub_sheet_names = sheet_names
736736
self.configure_sheets()
737737

0 commit comments

Comments
 (0)