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 code is None in CodeExercise with ExerciseRegistry #57

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

agoscinski
Copy link
Collaborator

@agoscinski agoscinski commented Jul 4, 2024

When the code is None in the CodeExercise and a ExerciseRegistry is given, then an error is raised when the save cue box is created, because the cue_widget is None. Since the cue widgets are set later on, we use a dummy widget on initialization with is later replaced.


📚 Documentation preview 📚: https://scicode-widgets--57.org.readthedocs.build/en/57/

When the code is None in the CodeExercise and a ExerciseRegistry is
given, then an error is raised when the save cue box is created, because
the cue_widget is None. Since the cue widgets are set later on, we use a
dummy widget on initialization with is later replaced.
@agoscinski agoscinski merged commit 7519ac6 into main Jul 9, 2024
3 checks passed
@agoscinski agoscinski deleted the fix/none-code branch July 9, 2024 08:21
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.

1 participant