two regressions in the [mongo] storage backend: (1) the four finally blocks did 'await db.close()' but the mongo lib's close() became synchronous this session, so await None raised TypeError on every op — dropped the await. (2) the backend consumed mongo's swallow-and-return-default wrapped methods raw, conflating a driver error with 'no document / not initialized' in the lib that gates authority; it now goes through the raw db.collection(name) escape hatch (the motor collection, which raises) and raises on a no-op upsert, matching the CLI's fail-loud stance. Signed-off-by: disqualifier <dev@disqualifier.me> |
||
|---|---|---|
| .. | ||
| commands | ||
| storage | ||
| __init__.py | ||
| __main__.py | ||
| cli.py | ||
| config.py | ||