In <[email protected]> cerr 
<[email protected]> writes:

> Traceback (most recent call last):
>   File "gateway.py", line 2485, in <module>
>     main()
>   File "gateway.py", line 2459, in main
>     cloud_check()
>   File "gateway.py", line 770, in cloud_check
>     gnstr_dict[src] = gn_from_cloud(curr_mac)
>   File "gateway.py", line 2103, in gn_from_cloud
>     tmpgndict[binmac] += "HELLO"
> KeyError: '\x04\xeeu'

You're not assigning to tmpgndict[binmac]; you're appending to it.  This
requires that tmpgndict[binmac] already exists, which it does not.

Make sure that tmpgndict[binmac] exists before you try appending to it.

-- 
John Gordon                   A is for Amy, who fell down the stairs
[email protected]              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to