[d-feet] deal with None config values by making them empty strings
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [d-feet] deal with None config values by making them empty strings
- Date: Mon, 14 Nov 2011 15:57:10 +0000 (UTC)
commit 9016828cd1302e61763e7f894f904f8c16958fff
Author: John (J5) Palmieri <johnp redhat com>
Date: Mon Nov 14 10:56:47 2011 -0500
deal with None config values by making them empty strings
dfeet/settings.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/dfeet/settings.py b/dfeet/settings.py
index 35edfe3..0a1c569 100644
--- a/dfeet/settings.py
+++ b/dfeet/settings.py
@@ -163,6 +163,9 @@ class Settings:
self.general[key][i] = self.quote(self.general[key][i])
self.general[key] = ','.join(self.general[key])
+ if self.general[key] == None:
+ self.general[key] = ''
+
self.config.set("General", key, self.general[key])
# make sure that the directory that the config file is in exists
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]