diff --git a/ContentDirectory.py b/ContentDirectory.py index 912f3cc..3ade39c 100644 --- a/ContentDirectory.py +++ b/ContentDirectory.py @@ -65,6 +65,10 @@ class ContentDirectoryControl(UPnPPublisher, dict): return i.id def delItem(self, id): + if not self.has_key(id): + log.msg('already removed:', id) + return + log.msg('removing:', id) if isinstance(self[id], Container): while self.children[id]: self.delItem(self.children[id][0])