Skip to content

Commit

Permalink
Aplastar Bichinho
Browse files Browse the repository at this point in the history
- Prevent from failing if Redis is not available (for building in
  ReadTheDocs)
  • Loading branch information
math-a3k committed Sep 4, 2023
1 parent 848baa1 commit 8ef7a4c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tradero/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

from .celery import app as celery_app

cache.delete(settings.SYMBOLS_UPDATE_ALL_INDICATORS_KEY)
try:
cache.delete(settings.SYMBOLS_UPDATE_ALL_INDICATORS_KEY)
except Exception: # pragma: no cover
# Prevent from failing if Redis is not available (for building in ReadTheDocs)
pass


__all__ = ("celery_app",)

0 comments on commit 8ef7a4c

Please sign in to comment.