mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-23 00:46:42 +08:00
Refactor: reformat all code for lefthook using ruff and gofmt (#16585)
This commit is contained in:
@@ -3,28 +3,34 @@
|
||||
|
||||
class ConnectorMissingCredentialError(Exception):
|
||||
"""Missing credentials exception"""
|
||||
|
||||
def __init__(self, connector_name: str):
|
||||
super().__init__(f"Missing credentials for {connector_name}")
|
||||
|
||||
|
||||
class ConnectorValidationError(Exception):
|
||||
"""Connector validation exception"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class CredentialExpiredError(Exception):
|
||||
"""Credential expired exception"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class InsufficientPermissionsError(Exception):
|
||||
"""Insufficient permissions exception"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class UnexpectedValidationError(Exception):
|
||||
"""Unexpected validation exception"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class RateLimitTriedTooManyTimesError(Exception):
|
||||
pass
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user