Skip to content

Commit c91be61

Browse files
committed
fix: reference the proper local_repo var on cleanup
1 parent 9882fbf commit c91be61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lifemonitor/api/models/repositories/github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,9 @@ def __del__(self):
382382
def cleanup(self) -> None:
383383
logger.debug("Repository cleanup")
384384
if getattr(self, "_local_repo", None):
385-
local_repo_path = self.local_repo.local_path
385+
local_repo_path = self._local_repo.local_path
386386
del self._local_repo
387-
logger.debug("Removing temp folder %r of %r", self.local_path, self)
387+
logger.debug("Removing temp folder %r of %r", self._local_path, self)
388388
shutil.rmtree(local_repo_path, ignore_errors=True)
389389
self._local_repo = None
390390

0 commit comments

Comments
 (0)