Commit 50f260b1 authored by Og B. Maciel's avatar Og B. Maciel

Don't try to cast a dbus.String into an int type, if catId is 'None'. Fixes Bug #556748

svn path=/trunk/; revision=672
parent b9d102bb
2008-10-17 Og Maciel <ogmaciel@gnome.org>
* src/lib/dbus_actions.py: Don't try to cast a dbus.String into an int type, if catId is 'None'.
Fixes Bug #556748.
2008-10-13 Og Maciel <ogmaciel@gnome.org>
* data/Makefile.am: Make sure that gconf schema is installed.
......
......@@ -47,7 +47,9 @@ class Actions(object):
if 'alarm' in record.keys():
record['alarm'] = int(record['alarm'])
if 'catId' in record.keys():
record['catId'] = int(record['catId'])
if record['catId'] and 'None' not in record['catId']:
record['catId'] = int(record['catId'])
return record
def get_monthly_totals(self, status, month, year):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment