check if None
[rainbowstream.git] / rainbowstream / draw.py
index 5063df4ed73b6422705a39609568014410f6d865..ab50d01b3dfb0069e75260f93fa9a479f23fe8dc 100644 (file)
@@ -35,8 +35,9 @@ def check_theme():
             config = 'rainbowstream/colorset/'+cur_theme+'.json'
         # Load new config
         data = load_config(config)
-        for d in data:
-            c[d] = data[d]
+        if data:
+            for d in data:
+                c[d] = data[d]
 
 
 def color_func(func_name):