Changeset - 47a0d3d1402d
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 13 years ago 2013-03-04 19:23:43
marcin@python-works.com
Grafted from: 867c4d7fd2d8
catch errors in obfuscate password function
1 file changed with 9 insertions and 5 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/utils2.py
Show inline comments
 
@@ -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):
0 comments (0 inline, 0 general)