diff options
Diffstat (limited to 'pomu/source/manager.py')
-rw-r--r-- | pomu/source/manager.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pomu/source/manager.py b/pomu/source/manager.py index 4989b12..61ed9be 100644 --- a/pomu/source/manager.py +++ b/pomu/source/manager.py @@ -42,6 +42,12 @@ class PackageDispatcher(): It would register all the methods of the class marked by @handler with the dispatcher. """ + try: + from pomu.source.base import BaseSource + except ImportError: #circular import + return cls + if cls == BaseSource: + return cls self.backends[cls.__name__] = cls for m, obj in inspect.getmembers(cls): if isinstance(obj, self.handler._handler): |