![]() |
KeyError Plus Other Issues
Hello,
I do not specifically know Python, but I have a rather good grasp of programming in general, but today i am left scratching my head. I have a script that I have grabbed that essentially logs into my asterisk server, listens to events and then pushes them into mysql database. I am getting the following error: Code:
[root@sipsrv03 events]# ./ProxyMan.pyThank you so much for any assistance you may be able to send my way! |
I learned a little python for making an app engine app, but i think I can help you.
keyerror means that that key doesn't exists in a list or an array. if you are using lists the use hasattr(list, 'keyname'). can I ask what are you trying to do? add a new key to an array? or what? |
| All times are GMT +1. The time now is 06:06 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.