Fix None error

This commit is contained in:
vas3k
2020-02-04 19:52:22 +01:00
parent 826ed64cf4
commit 9c047164fc

View File

@@ -31,7 +31,7 @@ def board(request, board_slug):
}, status=401)
cached_page = cache.get(f"board_{board.slug}")
if cached_page and board.refreshed_at <= \
if cached_page and board.refreshed_at and board.refreshed_at <= \
datetime.utcnow() - timedelta(seconds=settings.BOARD_CACHE_SECONDS):
return cached_page