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: Handle NonSupportedFeature exception for pipes #660

Merged
merged 3 commits into from
Nov 22, 2024

Conversation

burkeds
Copy link
Collaborator

@burkeds burkeds commented Nov 21, 2024

Old tango servers running tango version less than 9 don't support the pipe API or get_pipe_list(). Since we don't support pipes yet anyway, we should handle this exception and move on.

…ersions less than 9. Since we don't support pipes yet anyway, we should handle this exception and move on.
…l because of something in pytango so type checking needs to ignore it.
@burkeds
Copy link
Collaborator Author

burkeds commented Nov 21, 2024

@coretl It looks like CI is failing here due to type checking error in:

/home/runner/work/ophyd-async/ophyd-async/src/ophyd_async/core/_table.py:49:80

@coretl
Copy link
Collaborator

coretl commented Nov 22, 2024

@coretl It looks like CI is failing here due to type checking error in:

/home/runner/work/ophyd-async/ophyd-async/src/ophyd_async/core/_table.py:49:80

Just fixed in #665

@burkeds
Copy link
Collaborator Author

burkeds commented Nov 22, 2024

@coretl It looks like CI is failing here due to type checking error in:
/home/runner/work/ophyd-async/ophyd-async/src/ophyd_async/core/_table.py:49:80

Just fixed in #665

Thanks Tom. It looks like this brings down the coverage though. Since this relies on interacting with an old version of Tango, I am not sure how I could write a test for it.

@coretl
Copy link
Collaborator

coretl commented Nov 22, 2024

It looks like this brings down the coverage though. Since this relies on interacting with an old version of Tango, I am not sure how I could write a test for it.

I don't think I care about this, it's such a small change, I'll merge as is...

@coretl coretl merged commit b73c451 into bluesky:main Nov 22, 2024
12 of 13 checks passed
evalott100 pushed a commit that referenced this pull request Nov 27, 2024
* Old tango servers don't support the pipe API when used with PyTango versions less than 9. Since we don't support pipes yet anyway, we should handle this exception and move on.

* Fixed linting. NonSupportedFeature is not a recognizable import symbol because of something in pytango so type checking needs to ignore it.

* Trigger CI/CD pipeline
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