We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c4c62a commit ca9e5a5Copy full SHA for ca9e5a5
1 file changed
publications.py
@@ -2,10 +2,10 @@
2
"""Publication processing pipeline service."""
3
4
import base64
5
-import magic
6
import uuid
7
from typing import Optional
8
+import magic
9
from sqlalchemy.orm import Session
10
11
from keys import KeyManager
@@ -231,7 +231,11 @@ def _publish_online_content(
231
)
232
raise AdapterIntegrationError("Failed to send message via adapter.")
233
234
- result = pipe.get("result") or {}
+ result = pipe.get("result")
235
+ if isinstance(result, bool):
236
+ result = {"success": result}
237
+ elif not isinstance(result, dict):
238
+ result = {}
239
240
# Refresh may have happened even if the send itself failed downstream
241
# (e.g. token refreshed, then the HTTP call or attachment step failed).
0 commit comments