fix crash with --mode
authorChristian Hofstaedtler <ch@grml.org>
Thu, 2 Dec 2010 17:34:12 +0000 (18:34 +0100)
committerChristian Hofstaedtler <ch@grml.org>
Thu, 2 Dec 2010 17:34:12 +0000 (18:34 +0100)
grml-x

diff --git a/grml-x b/grml-x
index 995b4c4..9944737 100755 (executable)
--- a/grml-x
+++ b/grml-x
@@ -24,6 +24,8 @@ class Section(object):
             v = self.data[k]
             if isinstance(v, list):
                 v = '" "'.join(v)
+            elif not isinstance(v, basestring): # int, others
+                v = str(v)
             elif '-' in v: # sync range
                 pass
             else: