# HG changeset patch # User Marcin Kuzminski # Date 2013-03-04 18:23:43 # Node ID 47a0d3d1402d24adb3c5386f2c0e304de7e9c486 # Parent f674bc937d8a59e4b3ab83cf26c818efec0efffb catch errors in obfuscate password function diff --git a/rhodecode/lib/utils2.py b/rhodecode/lib/utils2.py --- a/rhodecode/lib/utils2.py +++ b/rhodecode/lib/utils2.py @@ -557,11 +557,15 @@ def fix_PATH(os_=None): def obfuscate_url_pw(engine): - from sqlalchemy.engine import url - url = url.make_url(engine) - if url.password: - url.password = 'XXXXX' - return str(url) + _url = engine or '' + from sqlalchemy.engine import url as sa_url + try: + _url = sa_url.make_url(engine) + if _url.password: + _url.password = 'XXXXX' + except: + pass + return str(_url) def get_server_url(environ):