Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 28, 2024
1 parent ac3c4d3 commit 6df9c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/ecobidas_ui/generate/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def download():
tmp = md(render_template("generate/report.html"), heading_style="ATX")
with open(Path(current_app.config["UPLOAD_FOLDER"]) / "report.md", "w") as f:
f.write(tmp)
except IOError as e:
except OSError as e:
current_app.logger.error(f"File write operation failed: {e}")
return "An error occurred while generating the report.", 500
with open(Path(current_app.config["UPLOAD_FOLDER"]) / "report.md", "w") as f:
Expand Down

0 comments on commit 6df9c2f

Please sign in to comment.