Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix errors on early termination #1188

Merged
merged 2 commits into from
Sep 16, 2022
Merged

Conversation

cheald
Copy link
Contributor

@cheald cheald commented Sep 16, 2022

Description

When early terminating, generation_callback gets invoked but st.session_state is empty, resulting in key errors.

When this happens, we can just return early (since we have indicated we don't care about further preview or progress updates!)

Checklist:

  • I have changed the base branch to dev
  • I have performed a self-review of my own code
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation

@ZeroCool940711 ZeroCool940711 merged commit 47e39df into Sygil-Dev:dev Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants