Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/blueapi/core/bluesky_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ def is_bluesky_plan_generator(func: PlanGenerator) -> bool:
return (get_origin(return_type) == Generator) and (
get_args(return_type)[0] == Msg
)
except TypeError:
# get_type_hints fails on some objects (such as Union or Optional)
except (TypeError, NameError):
# get_type_hints fails on some objects (such as Union, Optional or
# pydantic.Field)
return False


Expand Down
Loading