X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=plugin.pyx;h=57c7e9ddf1135accab1745d2e0b81c42d240136a;hp=c5b5f937dff55376c6b188872cd30e91f97e6ef4;hb=a50e5cd6b6bef7c0e25332b4669a25fc3abd76c7;hpb=4908a8a434d0468f59a1ec3222444fee47675f16 diff --git a/plugin.pyx b/plugin.pyx index c5b5f93..57c7e9d 100644 --- a/plugin.pyx +++ b/plugin.pyx @@ -169,7 +169,7 @@ cdef class Plugin: iter = iter.next - if not po.has_key(sett) or not po[sett]: + if sett not in po or po[sett] == None: continue if type == prefs.PURPLE_PREF_STRING: