Show More
@@ -561,11 +561,15 b' def fix_PATH(os_=None):' | |||||
561 |
|
561 | |||
562 |
|
562 | |||
563 | def obfuscate_url_pw(engine): |
|
563 | def obfuscate_url_pw(engine): | |
564 | from sqlalchemy.engine import url |
|
564 | _url = engine or '' | |
565 | url = url.make_url(engine) |
|
565 | from sqlalchemy.engine import url as sa_url | |
566 | if url.password: |
|
566 | try: | |
567 | url.password = 'XXXXX' |
|
567 | _url = sa_url.make_url(engine) | |
568 | return str(url) |
|
568 | if _url.password: | |
|
569 | _url.password = 'XXXXX' | |||
|
570 | except: | |||
|
571 | pass | |||
|
572 | return str(_url) | |||
569 |
|
573 | |||
570 |
|
574 | |||
571 | def get_server_url(environ): |
|
575 | def get_server_url(environ): |
General Comments 0
You need to be logged in to leave comments.
Login now