diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 52ebe050b7..724b009af2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,7 +80,7 @@ jobs: ##### Create release on GitHub - name: Create or update GitHub release - run: scriv github-release --repo=overhangio/tutor + run: scriv github-release --repo=edly-io/tutor env: GITHUB_TOKEN: ${{ github.token }} # scriv command will fail when not on a tag, such as running with act or a diff --git a/tutor/plugins/v0.py b/tutor/plugins/v0.py index f42484f1fb..7c1bd1cd83 100644 --- a/tutor/plugins/v0.py +++ b/tutor/plugins/v0.py @@ -156,6 +156,16 @@ def _load_tasks(self) -> None: Load hooks and check types. """ tasks = get_callable_attr(self.obj, "hooks", default={}) + print(f"self.obj: {self.obj}") + print(f"tasks: {tasks}") + # Check if tasks is a module and try to access its attributes + import sys + if isinstance(tasks, type(sys)): + # Assuming hooks are defined in a variable named 'hooks' in the module + print("Attributes of the tasks module:") + print(dir(tasks)) # List of attribute names + print(vars(tasks)) # Dictionary of attribute names and values + tasks = getattr(tasks, 'hooks', {}) if not isinstance(tasks, dict): raise exceptions.TutorError( f"Invalid hooks in plugin {self.name}. Expected dict, got {tasks.__class__}."