Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: muffix/pyfred-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.6
Choose a base ref
...
head repository: muffix/pyfred-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Oct 23, 2022

  1. Improve the debug log output

    Clarifies what output is expected from the workflow.
    muffix committed Oct 23, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    170ba2e View commit details
  2. Merge pull request #9 from muffix/improve-logging

    Improve the debug log output
    muffix authored Oct 23, 2022

    Partially verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    b42ac6e View commit details
Showing with 7 additions and 1 deletion.
  1. +7 −1 pyfred/workflow.py
8 changes: 7 additions & 1 deletion pyfred/workflow.py
Original file line number Diff line number Diff line change
@@ -33,7 +33,13 @@ def decorator():
output = fn(Path(path), args, alfred_environment)

if not isinstance(output, ScriptFilterOutput):
logging.error("The workflow must return a pyfred.workflow.Output instance")
logging.error(
"The workflow returned an unexpected type: %s, but expected %s.%s.",
type(output),
ScriptFilterOutput.__module__,
ScriptFilterOutput.__name__,
)
logging.debug("Unexpected instance of type %s: %s", type(output), repr(output))
exit(1)

print(json.dumps(output, default=vars_if_set))