python - Starpy connection randomly closing itself -


i have application uses newest version of starpy , works of time on machines being used, randomly stops on of them.

what happens: factory stops ( stopping factory ) , error thrown. error given is: " sequence index must integer, not 'str' ", doens't seem code. error preceded following error:

file "/usr/lib64/python2.6/logging/__init__.py", line 797, in emit [amiprotocol,client]     stream.write(fs % msg) [amiprotocol,client] ioerror: [errno 5] input/output error 

the code randomly throws error in 1 of 2 following partial codes: notes: i'm using " @defer.inlinecallbacks " decorator , variable client contains connection.

try:     dndextensions = []     dnd = yield client.command ( 'database show dnd' )     extension in dnd:         if 'dnd' in extension:             dndextensions.append ( extension.split ( '/dnd/' )[1].split (' ')[0] ) except exception, e:     # error ...   try:     lunchextensions = []     lunch = yield client.command ( 'database show lunch' )     extension in lunch:         if 'lunch' in extension:             lunchextensions.append ( extension.split ( '/lunch/' )[1].split (' ')[0] ) except exception, e:     # error ... 

any idea of might happening?


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -