Fix potential bug with removing repository directory
This commit is contained in:
parent
2db8f55a79
commit
aee9848c80
@ -241,7 +241,7 @@ class Repository(Hierarchy):
|
||||
|
||||
if remove_repo_dir:
|
||||
try:
|
||||
self.path.unlink()
|
||||
shutil.rmtree(self)
|
||||
except PermissionError as e:
|
||||
syslog.error(e)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user