def run(self):

        try:
            self.data, self.errors = self.callback(self.callback_arg,
                                                   **self.callback_kwargs)
        except:
            import traceback
            log.error('%s: %s' % (sys.exc_info()[0].__name__, sys.exc_info()[1]))
            self.errors.append({
                'type': str(sys.exc_info()[0].__name__),
                'value': str(sys.exc_info()[1]),
                'traceback': unicode(traceback.extract_tb(sys.exc_info()[2]))
            })
dataset/ETHPy150Open ipeirotis/Mturk-Tracker/app/mturk/main/management/commands/crawler_.py/Worker.run/original