Package ts3widgets
[hide private]
[frames] | no frames]

Source Code for Package ts3widgets

 1  import ts3lib 
 2  import ts3defines 
 3   
 4   
5 -def _errprint(msg, errcode, aid, secid=None):
6 if secid: 7 err = ts3lib.logMessage("%s (%s): %s" % (msg, secid, errcode), 8 ts3defines.LogLevel.LogLevel_ERROR, 9 "pyTSon.ts3widgets", aid) 10 else: 11 err = ts3lib.logMessage("%s: %s" % (msg, errcode), 12 ts3defines.LogLevel.LogLevel_ERROR, 13 "pyTSon.ts3widgets", aid) 14 15 if err != ts3defines.ERROR_ok: 16 if secid: 17 print("%s (%s, %s): %s" % (msg, aid, secid, errcode)) 18 else: 19 print("%s (%s): %s" % (msg, aid, errcode))
20