##// END OF EJS Templates
catch errors in obfuscate password function
marcink -
r3497:47a0d3d1 default
parent child Browse files
Show More
@@ -557,11 +557,15 b' def fix_PATH(os_=None):'
557 557
558 558
559 559 def obfuscate_url_pw(engine):
560 from sqlalchemy.engine import url
561 url = url.make_url(engine)
562 if url.password:
563 url.password = 'XXXXX'
564 return str(url)
560 _url = engine or ''
561 from sqlalchemy.engine import url as sa_url
562 try:
563 _url = sa_url.make_url(engine)
564 if _url.password:
565 _url.password = 'XXXXX'
566 except:
567 pass
568 return str(_url)
565 569
566 570
567 571 def get_server_url(environ):
General Comments 0
You need to be logged in to leave comments. Login now