Skip to content

Commit 9415676

Browse files
committed
Compatible with flake8
1 parent 2e52c37 commit 9415676

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

djcelery/snapshot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ def _handle_tasks():
138138
# force to close connection and Django will automatically reconnect
139139
if str(e) == 'connection already closed':
140140
connection.close()
141-
logger.info('Django db connection is closed and will reconnect')
141+
logger.info(
142+
'Django db connection is closed and will reconnect'
143+
)
142144

143145
def on_cleanup(self):
144146
expired = (self.TaskState.objects.expire_by_states(states, expires)

0 commit comments

Comments
 (0)