X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=blobdiff_plain;f=rainbowstream%2Frainbow.py;h=905ff77a82250ebd8cb68b2b8b55e43d04c137e9;hp=d4c1254d7e0d5972a16574f37b1d76f26cbebcdb;hb=3c01ba57824a0e03ab038c37f6de27c2cf129f02;hpb=4ef01bdac36c15900ab95752c47800f8f886426e diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index d4c1254..905ff77 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -1092,7 +1092,7 @@ def config(): line = ' '*2 + light_green(k) + ': ' + light_yellow(str(all_config[k])) printNicely(line) guide = 'Detailed explanation can be found at ' + \ - color_func(c['TWEET']['link'])('http://rainbowstream.readthedocs.org/en/latest/') + color_func(c['TWEET']['link'])('http://rainbowstream.readthedocs.org/en/latest/#config-explanation') printNicely(guide) # Print specific config elif len(g['stuff'].split()) == 1: @@ -1112,7 +1112,11 @@ def config(): elif len(g['stuff'].split()) == 3 and g['stuff'].split()[1] == '=' : key = g['stuff'].split()[0] value = g['stuff'].split()[-1] - set_config(key,value) + try: + set_config(key,value) + except: + printNicely(light_magenta('Not valid value.')) + return reload_config() else: printNicely(light_magenta('Sorry I can\'s understand.'))