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