Skip to content

Commit

Permalink
use with statement
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroesb committed Dec 18, 2023
1 parent 2a4d9a8 commit c6503de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ena_upload/ena_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,8 @@ def main():
schema_tables[schema] = f"{path}/ENA_template_{schema}.tsv"
elif isa_json_file:
# Read json file
isa_json = json.load(open(isa_json_file))
with open(isa_json_file, 'r') as json_file:
isa_json = json.load(json_file)

schema_tables = {}
schema_dataframe = {}
Expand Down

0 comments on commit c6503de

Please sign in to comment.