diff --git a/index.html b/index.html index d1025af..1405c93 100644 --- a/index.html +++ b/index.html @@ -188,6 +188,26 @@ diff --git a/main.py b/main.py index c3c88c9..c8ba2ea 100644 --- a/main.py +++ b/main.py @@ -293,6 +293,11 @@ def main(driver: WebDriver): recipients = data.get(parameters.get('column_address'), []) limit = len(recipients) + if not limit: + tell('输入无效', filename, level=1) + outbox.put(Command('setStatus', 'FINISH')) + continue + names = data.get(parameters.get('column_name'), [None] * limit) codes = data.get(parameters.get('column_code'), [None] * limit) sents = data.setdefault(parameters.get('column_sent'), [None] * limit)