diff --git a/ContentDirectory.py b/ContentDirectory.py index 22305ad..0a9b04f 100644 --- a/ContentDirectory.py +++ b/ContentDirectory.py @@ -114,7 +114,13 @@ class ContentDirectoryControl(UPnPPublisher, dict): '''If the generated object (by klass) has an attribute content, it is installed into the web server.''' assert isinstance(self[parent], Container) nid = self.getnextID() - i = klass(self, nid, parent, title, *args, **kwargs) + try: + i = klass(self, nid, parent, title, *args, **kwargs) + except: + import traceback + traceback.print_exc() + return + if hasattr(i, 'content'): self.webbase.putChild(nid, i.content) #log.msg('children:', `self.children[parent]`, `i`)