Skip to content

Commit

Permalink
Merge pull request #567 from aiarena/staging
Browse files Browse the repository at this point in the history
Release v1.10.4
  • Loading branch information
lladdy authored Apr 2, 2023
2 parents b0da085 + c4800de commit 043e876
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions aiarena/patreon/management/commands/refreshpatreontiers.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import os
import traceback

from constance import config
from django.core.management.base import BaseCommand, CommandError

from aiarena.core.models import User
from aiarena.patreon.models import PatreonAccountBind
from aiarena.patreon.patreon import PatreonOAuth, update_unlinked_discord_users
from aiarena.patreon.patreon import update_unlinked_discord_users


class Command(BaseCommand):
Expand All @@ -31,7 +30,10 @@ def handle(self, *args, **options):
except Exception as e:
errors = errors + os.linesep + traceback.format_exc()

update_unlinked_discord_users()
try:
update_unlinked_discord_users()
except Exception as e:
errors = errors + os.linesep + traceback.format_exc()

if len(errors) > 0:
raise CommandError('The following errors occurred:' + errors)
1 change: 0 additions & 1 deletion aiarena/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@
'drf_yasg',
'django_tables2',
]
SHEETS_CACHE_DISABLED = True

MIDDLEWARE = [
# This will be removed automatically in non-development environments
Expand Down

0 comments on commit 043e876

Please sign in to comment.