Permalink
Browse files

Fixed stuping code error.

  • Loading branch information...
1 parent 950f685 commit 4790693e2858839053d466e6e2592f5721c9e15e Vladimir Gorej committed Nov 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 django_gearman_commands/management/commands/gearman_submit_job.py
@@ -32,10 +32,10 @@ def handle(self, *args, **options):
self.stdout.write('Submitting job: %s, job data: {0:s}.\n'.format(task_name, job_data if job_data else '(empty)'))
- client = gearman.GearmanClient(django_gearman_commands.settings.settings.GEARMAN_SERVERS)
+ client = gearman.GearmanClient(django_gearman_commands.settings.GEARMAN_SERVERS)
result = client.submit_job(task_name, job_data, wait_until_complete=False, background=True)
self.stdout.write('Job submission done, result: {0:s}.\n'.format(result))
except:
log.exception('Error when submitting gearman job')
- raise
+ raise

0 comments on commit 4790693

Please sign in to comment.