Skip to content

Commit 40b5f6f

Browse files
author
CI
committed
fixed issue with loading not always emitting PIPE_INIT
1 parent 24757a4 commit 40b5f6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adk/ADK.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def __init__(self, apply_func, load_func=None):
3131
self.load_result = None
3232

3333
def load(self):
34-
self.load_result = self.load_func()
34+
if self.load_func:
35+
self.load_result = self.load_func()
3536
if self.is_local:
3637
print("loading complete")
3738
else:
@@ -131,8 +132,7 @@ def process_local(self, local_payload, pprint):
131132

132133
def loading_process(self, pprint):
133134
try:
134-
if self.load_func:
135-
self.load()
135+
self.load()
136136
return True
137137
except Exception as e:
138138
load_error = self.create_exception(e)

0 commit comments

Comments
 (0)