Skip to content
Snippets Groups Projects
Commit 4e6ef1a5 authored by Damian Johnson's avatar Damian Johnson
Browse files

Nyxrc color_override only worked if camel case

Great catch from cypherpunks on...

  https://trac.torproject.org/projects/tor/ticket/26026
parent d28c09e5
Branches
No related tags found
No related merge requests found
......@@ -169,6 +169,8 @@ Dimensions = collections.namedtuple('Dimensions', ['width', 'height'])
def conf_handler(key, value):
if key == 'color_override':
value = stem.util.str_tools._to_camel_case(value)
if value not in Color and value != 'None':
raise ValueError('"%s" isn\'t a valid color' % value)
elif key == 'max_line_wrap':
......
......@@ -71,6 +71,7 @@
<li><span class="component">Startup</span>
<ul>
<li>Connect by default to Tor Browser's default port (9151) when it's available</li>
<li>Nyxrc <b>color_override</b> configuration values only worked if camel case (:trac:`26026`)</li>
</ul>
</li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment