Skip to content

Commit

Permalink
wrap assert in exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ritch committed Dec 18, 2024
1 parent cd199ad commit 635f4a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fiftyone/factory/repos/delegated_operation_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ def __init__(
self.operator = operator
self.label = None
self.delegation_target = delegation_target
assert isinstance(context, ExecutionContext) or context is None
try:
assert isinstance(context, ExecutionContext) or context is None
except:
raise AttributeError
self.context = context
self.run_state = (
ExecutionRunState.SCHEDULED
Expand Down

0 comments on commit 635f4a8

Please sign in to comment.