linting some blank lines

This commit is contained in:
Ilan Steemers
2015-07-10 12:14:57 +02:00
parent 90d30e14e8
commit e590628612
6 changed files with 8 additions and 6 deletions
+2 -3
View File
@@ -35,8 +35,6 @@ from django_q.models import Task, Success, Schedule
from django_q.monitor import Status, Stat
class Cluster(object):
def __init__(self, list_key=Conf.Q_LIST):
try:
@@ -450,7 +448,8 @@ def scheduler(list_key=Conf.Q_LIST):
kwargs['list_key'] = list_key
s.task = tasks.async(s.func, *args, **kwargs)
if not s.task:
logger.error(_('{} failed to create a task from schedule {} [{}]').format(current_process().name, s.id), s.func)
logger.error(_('{} failed to create a task from schedule {} [{}]').format(current_process().name, s.id),
s.func)
else:
logger.info(_('{} created a task from schedule {} [{}]').format(current_process().name, s.id, s.func))
s.save()