Fix potential bug with removing repository directory

This commit is contained in:
Eric Torres 2019-04-12 07:50:31 -07:00
parent 2db8f55a79
commit aee9848c80

View File

@ -241,7 +241,7 @@ class Repository(Hierarchy):
if remove_repo_dir: if remove_repo_dir:
try: try:
self.path.unlink() shutil.rmtree(self)
except PermissionError as e: except PermissionError as e:
syslog.error(e) syslog.error(e)
else: else: