On Thu, Mar 25, 2010 at 12:24 PM, Ray Parrish <c...@cmc.net> wrote: > > As you can see, it is tossing a key error on the same ip address that was > used in the interactive code successfully, > > I can not figure out what to change to make the script work. Does someone > know why this happens? >
It's impossible to tell for sure from just that snippet, but my first guess would be that the if statement is not actually executed. Put a print statement in there and check if you're really executing what you think you're executing. Hugo _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor