cmdlet refactor
This commit is contained in:
@@ -1235,6 +1235,13 @@ def run_store_note_batches(
|
||||
if on_store_error is not None and exc is not None:
|
||||
on_store_error(store_name, exc)
|
||||
continue
|
||||
supports_note_capability = getattr(backend, "supports_note_association", None)
|
||||
if supports_note_capability is None:
|
||||
supports_note_capability = hasattr(backend, "set_note")
|
||||
if not bool(supports_note_capability):
|
||||
if on_unsupported_store is not None:
|
||||
on_unsupported_store(store_name)
|
||||
continue
|
||||
if not hasattr(backend, "set_note"):
|
||||
if on_unsupported_store is not None:
|
||||
on_unsupported_store(store_name)
|
||||
|
||||
Reference in New Issue
Block a user