Use explicit outbox source validation
This commit is contained in:
@@ -1114,7 +1114,8 @@ def execute_calendar_outbox_operation(
|
|||||||
)
|
)
|
||||||
return operation
|
return operation
|
||||||
|
|
||||||
assert source is not None
|
if source is None:
|
||||||
|
raise ValueError("Calendar outbox source is no longer available")
|
||||||
operation_metadata = operation.metadata_ or {}
|
operation_metadata = operation.metadata_ or {}
|
||||||
overwrite = (
|
overwrite = (
|
||||||
bool(operation_metadata.get("overwrite"))
|
bool(operation_metadata.get("overwrite"))
|
||||||
|
|||||||
Reference in New Issue
Block a user