Skip to content

Commit

Permalink
Cleanup of vpoller.task.registry module
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaeon committed Jan 28, 2015
1 parent c8e81e7 commit 7b06f05
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/vpoller/task/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
"""

from vpoller.log import logger
from vpoller.core import Task
from vpoller.exceptions import VPollerException
from vpoller.task.core import Task

__all__ = ['TaskRegistry']

Expand All @@ -53,8 +52,6 @@ def register(self, task):
task (Task): A Task instance to be registered
"""
logger.debug('Registering task %s', name)

if not isinstance(task, Task):
raise VPollerException('The task should be an instance of Task class')

Expand All @@ -68,7 +65,6 @@ def unregister(self, name):
name (str): Name of the task to remove from registry
"""
logger.debug('Unregistering task %s', name)
self._registry.pop(name)

def get(self, name):
Expand Down

0 comments on commit 7b06f05

Please sign in to comment.