mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-12 14:00:17 +02:00
Fixed exception thrown in celery
This commit is contained in:
parent
534eb460e1
commit
0256feeceb
@ -144,7 +144,7 @@ DEFAULT_ALLIANCE_GROUP = 'AllianceMember'
|
||||
|
||||
# ALLIANCE INFO
|
||||
ALLIANCE_ID = '0'
|
||||
ALLIANCE_NAME = 'Alliance Name'
|
||||
ALLIANCE_NAME = 'SomeAllianceName'
|
||||
|
||||
# Jabber Prosody Info
|
||||
JABBER_URL = "@someaddress.com"
|
||||
|
@ -50,6 +50,14 @@ def update_forum_groups(user):
|
||||
|
||||
|
||||
def add_to_databases(user, groups, syncgroups):
|
||||
|
||||
authserviceinfo = None
|
||||
try:
|
||||
authserviceinfo = AuthServicesInfo.objects.get(user=user)
|
||||
except:
|
||||
pass
|
||||
|
||||
if authserviceinfo:
|
||||
authserviceinfo = AuthServicesInfo.objects.get(user=user)
|
||||
|
||||
update = False
|
||||
@ -75,7 +83,13 @@ def add_to_databases(user, groups, syncgroups):
|
||||
|
||||
|
||||
def remove_from_databases(user, groups, syncgroups):
|
||||
authserviceinfo = None
|
||||
try:
|
||||
authserviceinfo = AuthServicesInfo.objects.get(user=user)
|
||||
except:
|
||||
pass
|
||||
|
||||
if authserviceinfo:
|
||||
update = False
|
||||
for syncgroup in syncgroups:
|
||||
group = groups.filter(name=syncgroup.groupname)
|
||||
|
Loading…
x
Reference in New Issue
Block a user