Skip to content

Commit dd0143a

Browse files
committed
Add missing return
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
1 parent 324de77 commit dd0143a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

agent/component/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,14 +514,15 @@ def get_component_name(self, cpn_id) -> str:
514514
def get_param(self, name):
515515
if hasattr(self._param, name):
516516
return getattr(self._param, name)
517+
return None
517518

518519
def debug(self, **kwargs):
519520
return self._invoke(**kwargs)
520521

521522
def get_parent(self) -> Union[object, None]:
522523
pid = self._canvas.get_component(self._id).get("parent_id")
523524
if not pid:
524-
return
525+
return None
525526
return self._canvas.get_component(pid)["obj"]
526527

527528
def get_upstream(self) -> List[str]:
@@ -546,7 +547,7 @@ def repl(_match, val=v):
546547

547548
def exception_handler(self):
548549
if not self._param.exception_method:
549-
return
550+
return None
550551
return {
551552
"goto": self._param.exception_goto,
552553
"default_value": self._param.exception_default_value

0 commit comments

Comments
 (0)