Skip to content

Commit

Permalink
use pathlib's Path.open method
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Bühler <buehler-fabian@posteo.de>
  • Loading branch information
infacc and buehlefs authored Sep 21, 2023
1 parent f0ceaed commit e50feef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qhana_plugin_registry/util/ui_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _load_template_from_file(app: Flask, file: Union[str, Path]) -> None:
return

try:
with open(file, "r") as f:
with file.open("r") as f:
template_json = load(f)
app.logger.info(f"Loaded template from file '{file}'.")
except Exception:
Expand Down

0 comments on commit e50feef

Please sign in to comment.