mirror of
https://github.com/apache/superset.git
synced 2026-05-06 16:34:32 +00:00
fix: handle empty catalog when DB supports them (#29840)
This commit is contained in:
@@ -491,7 +491,7 @@ class Database(Model, AuditMixinNullable, ImportExportMixin): # pylint: disable
|
||||
g.user.id,
|
||||
self.db_engine_spec,
|
||||
)
|
||||
if hasattr(g, "user") and hasattr(g.user, "id") and oauth2_config
|
||||
if oauth2_config and hasattr(g, "user") and hasattr(g.user, "id")
|
||||
else None
|
||||
)
|
||||
# If using MySQL or Presto for example, will set url.username
|
||||
|
||||
Reference in New Issue
Block a user