Skip to content

Commit

Permalink
Throw error if tmp_folder not created
Browse files Browse the repository at this point in the history
  • Loading branch information
cbusillo committed Jul 4, 2024
1 parent b4485a9 commit a1461e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bd_to_avp/modules/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def process_each() -> None:

tmp_folder.mkdir(parents=True, exist_ok=True)
os.environ["TMPDIR"] = tmp_folder.as_posix()
if not tmp_folder.exists():
raise RuntimeError(f"Failed to create temporary folder: {tmp_folder}")

print(f"Using temporary folder: {os.environ['TMPDIR']}")

Expand Down

0 comments on commit a1461e1

Please sign in to comment.