From 4407fd9061cf5b2a6a7b1972c6231588c0684de3 Mon Sep 17 00:00:00 2001 From: Alexey Avramov Date: Sat, 3 Aug 2019 18:05:16 +0900 Subject: [PATCH] fix --- nohang_notify_helper | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nohang_notify_helper b/nohang_notify_helper index 492d841..b2c24e1 100755 --- a/nohang_notify_helper +++ b/nohang_notify_helper @@ -125,8 +125,11 @@ try: except OSError: exit(1) - -_, uid, debug, title, body = argv +if len(argv) == 5: + _, uid, debug, title, body = argv +else: + print('{}: invalid input'.format(argv[0])) + exit(1) uid = uid.partition('--euid=')[2]