From 81768983d8bbd6a827807a53e9875aa47e748d54 Mon Sep 17 00:00:00 2001 From: Raynaldo Rivera Date: Sun, 23 Nov 2014 17:39:28 -0700 Subject: [PATCH] Added teamspeak3 group fix --- services/managers/teamspeak3_manager.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/services/managers/teamspeak3_manager.py b/services/managers/teamspeak3_manager.py index d829fe50..141306af 100755 --- a/services/managers/teamspeak3_manager.py +++ b/services/managers/teamspeak3_manager.py @@ -1,5 +1,3 @@ -import types - from django.conf import settings from services.managers.util.ts3 import TS3Server @@ -85,7 +83,7 @@ class Teamspeak3Manager: server = Teamspeak3Manager.__get_created_server() group_cache = server.send_command('servergrouplist') outlist = {} - if type(group_cache) is types.DictType: + if group_cache: for group in group_cache: outlist[group['keys']['name']] = group['keys']['sgid'] else: