summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/schema.py
diff options
context:
space:
mode:
authorValery Yundin <yuvalery@gmail.com>2016-12-16 09:22:08 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2017-01-16 14:02:26 -0500
commitbccc1419a67c06636b5d5a8d5c00612b7d843edd (patch)
treec152ebc97afc1dc0cd1f018fdf794e370d814edc /lib/sqlalchemy/sql/schema.py
parent710ce4aaf9130cce0ad17cc471be57038dd641aa (diff)
downloadsqlalchemy-bccc1419a67c06636b5d5a8d5c00612b7d843edd.tar.gz
Better hide engine password
Avoid putting engine password in the exception message in `MetaData.reflect` (since exception messages often appear in logs). Use the same redacted `__repr__` implementation in `TLEngine` as in its base class `Engine` Change-Id: Ic0a7baea917a9c8d87dffdd82ef566673ab08e02 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/327
Diffstat (limited to 'lib/sqlalchemy/sql/schema.py')
-rw-r--r--lib/sqlalchemy/sql/schema.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/schema.py b/lib/sqlalchemy/sql/schema.py
index 793750f1c..9bb0eee43 100644
--- a/lib/sqlalchemy/sql/schema.py
+++ b/lib/sqlalchemy/sql/schema.py
@@ -3811,8 +3811,8 @@ class MetaData(SchemaItem):
s = schema and (" schema '%s'" % schema) or ''
raise exc.InvalidRequestError(
'Could not reflect: requested table(s) not available '
- 'in %s%s: (%s)' %
- (bind.engine.url, s, ', '.join(missing)))
+ 'in %r%s: (%s)' %
+ (bind.engine, s, ', '.join(missing)))
load = [name for name in only if extend_existing or
name not in current]