From f0541e570d2755358ac8f72a2a8769abcaca5801 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sat, 3 Dec 2016 00:00:25 +0100 Subject: [PATCH] [fix] syntax error in python would avoid catching excepted exception --- moulinette/interfaces/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moulinette/interfaces/cli.py b/moulinette/interfaces/cli.py index 493b9025..0a2eee8f 100644 --- a/moulinette/interfaces/cli.py +++ b/moulinette/interfaces/cli.py @@ -350,7 +350,7 @@ class Interface(BaseInterface): try: ret = self.actionsmap.process(args, timeout=30) - except KeyboardInterrupt, EOFError: + except (KeyboardInterrupt, EOFError): raise MoulinetteError(errno.EINTR, m18n.g('operation_interrupted')) if ret is None or output_as == 'none':