Skip to content

Commit

Permalink
add logs to catch exception occured during purge cache
Browse files Browse the repository at this point in the history
  • Loading branch information
petracihalova committed Jun 25, 2024
1 parent ebb2593 commit 8297076
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rbac/management/management/commands/seeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@ def handle(self, *args, **options):
group_seeding()
logger.info("*** Group seeding completed. ***\n")

purge_cache()
try:
purge_cache()
except Exception as e:
logger.error(f"An exception occurred during purge cache: {e}")
raise e

0 comments on commit 8297076

Please sign in to comment.