Skip to content

Commit bbbb4c8

Browse files
committed
Fix linting errors.
1 parent 86738fa commit bbbb4c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cacheback/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def async_refresh(self, *args, **kwargs):
328328
),
329329
task_options=self.task_options
330330
)
331-
except Exception as e:
331+
except Exception:
332332
# Handle exceptions from talking to RabbitMQ - eg connection
333333
# refused. When this happens, we try to run the task
334334
# synchronously.

cacheback/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
try:
1818
import django_rq
1919
from .rq_tasks import refresh_cache as rq_refresh_cache
20-
except ImportError as exc:
20+
except ImportError:
2121
django_rq = None
2222
rq_refresh_cache = None
2323

0 commit comments

Comments
 (0)