From d273936ccf56e85d436d66ae23d626b1960f7a2c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 2 Jun 2022 11:58:01 +0100 Subject: [PATCH] Allow onion domains config file to have commented out lines --- webapp_post.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webapp_post.py b/webapp_post.py index 0c32d0453..70602fc76 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -1538,6 +1538,9 @@ def _substitute_onion_domains(base_dir: str, content: str) -> str: onion_domains = {} separators = (' ', ',', '->') for line in onion_domains_list: + line = line.strip() + if line.startswith('#'): + continue for sep in separators: if sep not in line: continue