updated succesfully
authorOrakaro <nhatminh_179@hotmail.com>
Sat, 19 Jul 2014 07:40:41 +0000 (16:40 +0900)
committerOrakaro <nhatminh_179@hotmail.com>
Sat, 19 Jul 2014 07:40:41 +0000 (16:40 +0900)
rainbowstream/config.py
rainbowstream/rainbow.py

index e19f069..2e79c9a 100644 (file)
@@ -74,7 +74,7 @@ def set_config(key,value):
     # Modify value
     if value.isdigit():
         value = int(value)
-    if value.lower() == 'True':
+    elif value.lower() == 'True':
         value = True
     elif value.lower() == 'False':
         value = False
index 905ff77..c424e84 100644 (file)
@@ -1114,6 +1114,7 @@ def config():
         value = g['stuff'].split()[-1]
         try:
             set_config(key,value)
+            printNicely(light_green('Updated successfully.'))
         except:
             printNicely(light_magenta('Not valid value.'))
             return