From 432bb970ade786b778e203a48d788bd13567ff3f Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Tue, 27 Jun 2017 10:39:15 +0100 Subject: Always treat URL value as a str --- ybd/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ybd/app.py') diff --git a/ybd/app.py b/ybd/app.py index 6525f60..4856ceb 100644 --- a/ybd/app.py +++ b/ybd/app.py @@ -242,7 +242,7 @@ def load_configs(config_files): config[key.replace('_', '-')] = value msg = value if 'PASSWORD' not in key.upper() else '(hidden)' if 'URL' in key.upper(): - msg = re.sub(r'(https://)[^@]*@', '\\1', value) + msg = re.sub(r'(https://)[^@]*@', '\\1', str(value)) print ' %s=%s' % (key.replace('_', '-'), msg) print -- cgit v1.2.1