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 check for pegasus-plan #4943

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

titodalcanton
Copy link
Contributor

When Pegasus is not installed, planning a workflow will give you a weird error. This makes it give a better error.

Standard information about the request

This is a bug fix.

This change affects anything based on Pegasus workflows.

Motivation

The old code would give you this error:

AttributeError: 'NoneType' object has no attribute 'endswith'

and then postdocs and students would ask me what is happening, and I would have to investigate and find out that the cause was a trivial mistake on my end.

With this PR I can skip the "investigate" part.

Contents

Catch the case when pegasus-plan is not available and print out an explicit message.

Links to any issues or associated PRs

N/A

Testing performed

None.

Additional notes

:unicorn_face:

  • The author of this pull request confirms they will adhere to the code of conduct

@titodalcanton titodalcanton merged commit 7861675 into gwastro:master Nov 20, 2024
29 checks passed
@titodalcanton titodalcanton deleted the fix-pegasus-plan-check branch November 20, 2024 12:24
prayush pushed a commit to prayush/pycbc that referenced this pull request Nov 21, 2024
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