Commit 431cba7b authored by anonym's avatar anonym
Browse files

tor-controlport-filter: log reasons for YAML being bad.

parent b258da41
......@@ -500,9 +500,9 @@ class FilteredControlPortProxyHandler(socketserver.StreamRequestHandler):
if name not in filter_:
filter_['name'] = name
self.filters += filters
except (yaml.parser.ParserError, yaml.scanner.ScannerError):
log("filter '{}' has bad YAML and was not loaded!"
except (yaml.parser.ParserError, yaml.scanner.ScannerError) as err:
log("filter '{}' has bad YAML and was not loaded: {}"
.format(filter_file, str(err)))
def connect_to_real_control_port(self):
with open(global_args.control_cookie_path, "rb") as f:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment