Skip to content

Commit 49cf592

Browse files
committed
run black
1 parent d56f52a commit 49cf592

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

redbeat/schedulers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ def get_redis(app=None):
162162
if connection:
163163
_set_redbeat_connect(app, REDBEAT_REDIS_KEY, connection, retry_period)
164164

165-
if hasattr(app, REDBEAT_SENTINEL_KEY) and isinstance(getattr(app, REDBEAT_SENTINEL_KEY), Sentinel):
165+
if hasattr(app, REDBEAT_SENTINEL_KEY) and isinstance(
166+
getattr(app, REDBEAT_SENTINEL_KEY), Sentinel
167+
):
166168
sentinel = getattr(app, REDBEAT_SENTINEL_KEY)
167169
connection = sentinel.master_for(
168170
redis_options.get('service_name', 'master'), db=redis_options.get('db', 0)
@@ -225,6 +227,7 @@ def is_key_in_conf(self, name):
225227
if name.upper() in map(lambda k: k.upper(), self.app.conf.keys()):
226228
return True
227229

230+
228231
class RedBeatSchedulerEntry(ScheduleEntry):
229232
_meta = None
230233

0 commit comments

Comments
 (0)