Skip to content

Commit 35a17a3

Browse files
committed
ensured that init checks for any kind of payload; including "" or {} as input
1 parent 0820e44 commit 35a17a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adk/ADK.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def process_local(self, local_payload, pprint):
9494

9595
def init(self, local_payload=None, pprint=print):
9696
self.load()
97-
if self.is_local and local_payload:
97+
if self.is_local and local_payload is not None:
9898
if self.loading_exception:
9999
load_error = create_exception(self.loading_exception, loading_exception=True)
100100
self.write_to_pipe(load_error, pprint=pprint)

0 commit comments

Comments
 (0)