mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
fix: oauth2 trino (#31993)
This commit is contained in:
@@ -62,9 +62,7 @@ except ImportError:
|
||||
class CustomTrinoAuthErrorMeta(type):
|
||||
def __instancecheck__(cls, instance: object) -> bool:
|
||||
logger.info("is this being called?")
|
||||
return isinstance(
|
||||
instance, HttpError
|
||||
) and "error 401: b'Invalid credentials'" in str(instance)
|
||||
return isinstance(instance, HttpError) and "error 401" in str(instance)
|
||||
|
||||
|
||||
class TrinoAuthError(HttpError, metaclass=CustomTrinoAuthErrorMeta):
|
||||
|
||||
Reference in New Issue
Block a user