Skip to content

Commit

Permalink
make sure temp dir gets deleted (#9292)
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksanders authored Feb 8, 2022
1 parent 055f04c commit 7f1d46d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion consoleme/lib/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,5 @@ def store_iam_resources_in_git(
origin.push("master", force=True)
except Exception: # noqa
sentry_sdk.capture_exception()
shutil.rmtree(tempdir)
finally:
shutil.rmtree(tempdir)

0 comments on commit 7f1d46d

Please sign in to comment.