From 558d01eae5f5c9770e35fc316292a9717a1fa5da Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 16 Mar 2020 11:10:02 +0800 Subject: [PATCH] 1 --- f7/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/f7/app.py b/f7/app.py index 28238b3..5fe05f7 100644 --- a/f7/app.py +++ b/f7/app.py @@ -115,7 +115,10 @@ class _App: assert self._listened def thread_func(args): try: - func(args) + if len(args) > 0: + func(args) + else: + func() except Exception as e: f7.udplog.error('_dispatchIMMsg ' + str(e)) if done_callback: