diff options
author | Ben Brown <ben.brown@codethink.co.uk> | 2017-06-27 10:39:15 +0100 |
---|---|---|
committer | Ben Brown <ben.brown@codethink.co.uk> | 2017-06-30 11:24:53 +0100 |
commit | 432bb970ade786b778e203a48d788bd13567ff3f (patch) | |
tree | 0f7845b8d5cda875c92d149206fcc3cf21beb67b | |
parent | 16dc8907e16fadf02eab14263b7f41f91c9797f3 (diff) | |
download | ybd-432bb970ade786b778e203a48d788bd13567ff3f.tar.gz |
Always treat URL value as a strbenbrown/fixups
-rw-r--r-- | ybd/app.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |