Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions docs/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ <h1 class="title">Module <code>keboola.component.base</code></h1>
if is_sync_action:
# sync action expects valid JSON in stdout on success.
result_str = process_sync_action_result(result)
sys.stdout.write(result_str)
# handle cases, when there is sync action called from another sync_action
try:
sys.stdout.write(result_str)
except AttributeError:
pass

return result

Expand Down Expand Up @@ -522,7 +526,11 @@ <h2 id="args">Args</h2>
if is_sync_action:
# sync action expects valid JSON in stdout on success.
result_str = process_sync_action_result(result)
sys.stdout.write(result_str)
# handle cases, when there is sync action called from another sync_action
try:
sys.stdout.write(result_str)
except AttributeError:
pass

return result

Expand Down
6 changes: 5 additions & 1 deletion src/keboola/component/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ def action_wrapper(self, *args, **kwargs):
if is_sync_action:
# sync action expects valid JSON in stdout on success.
result_str = process_sync_action_result(result)
sys.stdout.write(result_str)
# handle cases, when there is sync action called from another sync_action
try:
sys.stdout.write(result_str)
except AttributeError:
pass

return result

Expand Down