summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Options.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Options.py b/src/lib/Options.py
index 3bb7fe872..b25fb59fb 100644
--- a/src/lib/Options.py
+++ b/src/lib/Options.py
@@ -128,7 +128,10 @@ class OptionSet(dict):
self[key] = val
list_split = lambda x:x.replace(' ','').split(',')
-colon_split = lambda x:x.split(':')
+def colon_split(c_string):
+ if c_string:
+ return c_string.split(':')
+ return []
CFILE = Option('Specify configuration file', DEFAULT_CONFIG_LOCATION, cmd='-C',
odesc='<conffile>')