mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-11 21:40:17 +02:00
parent
e242b8cfec
commit
deb94c06fd
@ -72,11 +72,14 @@ class TS3Proto:
|
||||
break
|
||||
|
||||
if resp['command'] == 'error':
|
||||
if data and resp['keys']['id'] == '0':
|
||||
if len(data) > 1:
|
||||
return data
|
||||
if resp['keys']['id'] == '0':
|
||||
if data:
|
||||
if len(data) > 1:
|
||||
return data
|
||||
else:
|
||||
return data[0]
|
||||
else:
|
||||
return data[0]
|
||||
return resp['keys']['id']
|
||||
else:
|
||||
raise TeamspeakError(resp['keys']['id'])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user