Skip to content

Commit

Permalink
added exit to script
Browse files Browse the repository at this point in the history
  • Loading branch information
trbKnl committed Jan 11, 2024
1 parent 5658b9a commit 685335c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/framework/processing/py/port/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import port.instagram as instagram
import port.linkedin as linkedin

from port.api.commands import (CommandSystemDonate, CommandUIRender)
from port.api.commands import (CommandSystemDonate, CommandUIRender, CommandSystemExit)

LOG_STREAM = io.StringIO()

Expand Down Expand Up @@ -119,6 +119,7 @@ def process(session_id):
LOGGER.info("Skipped ater reviewing consent: %s", platform_name)
yield donate_logs(f"{session_id}-tracking")

yield exit(0, "Success")
yield render_end_page()


Expand Down Expand Up @@ -602,3 +603,6 @@ def prompt_file(extensions, platform):

def donate(key, json_string):
return CommandSystemDonate(key, json_string)

def exit(code, info):
return CommandSystemExit(code, info)

0 comments on commit 685335c

Please sign in to comment.