From: Orakaro Date: Sat, 19 Jul 2014 07:40:41 +0000 (+0900) Subject: updated succesfully X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=commitdiff_plain;h=720123f8296e176d1af022423f5bced1fd6d5a15 updated succesfully --- diff --git a/rainbowstream/config.py b/rainbowstream/config.py index e19f069..2e79c9a 100644 --- a/rainbowstream/config.py +++ b/rainbowstream/config.py @@ -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 diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 905ff77..c424e84 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -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