diff --git a/oml/library.py b/oml/library.py index 274f00c..94e30e8 100644 --- a/oml/library.py +++ b/oml/library.py @@ -208,8 +208,9 @@ class Peer(object): def remove(self): self.join() - os.unlink(self._dbpath) - os.unlink(self._infopath) + for path in (self._dbpath, self._logpath, self._infopath): + if os.path.exists(path): + os.unlink(path) def sync_db(self): import item.models