style(cloud): reformat modules and restore except-tuple parentheses
Tests / Test failed: 4, passed: 744
Tests / Test failed: 4, passed: 744
Apply consistent line-length formatting across governance, plugins, the SDK routers (governance_api, user_api), user_auth, and migrations 0003/0005/0006. Also restore the parentheses on two except clauses that had been dropped into invalid Python 3 `except A, B:` syntax: plugins._coerce_to_manifest (KeyError, ValueError) and PasswordHasher.verify (InvalidHashError, VerificationError). Both modules now import cleanly again. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -142,9 +142,7 @@ class PluginRegistry:
|
||||
self.register(manifest)
|
||||
result.registered.append(manifest)
|
||||
except _PLUGIN_REGISTRATION_FAILURES as exc:
|
||||
result.errors.append(
|
||||
f"entry-point plugin {manifest.name!r}: {exc}"
|
||||
)
|
||||
result.errors.append(f"entry-point plugin {manifest.name!r}: {exc}")
|
||||
if scan_path is not None:
|
||||
for manifest in self.discover_manifest_files(scan_path):
|
||||
try:
|
||||
@@ -167,8 +165,12 @@ class PluginRegistry:
|
||||
for entry_point in entry_points:
|
||||
try:
|
||||
loaded = entry_point.load()
|
||||
except Exception as exc: # pragma: no cover - exercised via fake eps in tests
|
||||
logger.warning("entry point %r failed to load: %s", entry_point.name, exc)
|
||||
except (
|
||||
Exception
|
||||
) as exc: # pragma: no cover - exercised via fake eps in tests
|
||||
logger.warning(
|
||||
"entry point %r failed to load: %s", entry_point.name, exc
|
||||
)
|
||||
continue
|
||||
manifest = _coerce_to_manifest(loaded)
|
||||
if manifest is not None:
|
||||
|
||||
Reference in New Issue
Block a user