'Raise a DependencyError if our dependencies aren\'t available'

def on_task_start(self, task, config):

    try:
        from deluge.ui.client import client
    except ImportError as e:
        log.debug((u'Error    importing    deluge:    %s' % e))
        raise plugin.DependencyError(u'deluge', u'deluge', (u"Deluge    >=1.2    module    and    it's    dependencies    required.    ImportError:    %s" % e), log)
    try:
        from twisted.internet import reactor
    except:
        raise plugin.DependencyError(u'deluge', u'twisted.internet', u'Twisted.internet    package    required', log)
