diff --git a/supervisor/tests/test_options.py b/supervisor/tests/test_options.py index 8d9ebdad9..8e53cd369 100644 --- a/supervisor/tests/test_options.py +++ b/supervisor/tests/test_options.py @@ -1138,7 +1138,7 @@ def test_options_afunix_username_without_password(self): try: instance.read_config(StringIO(text)) self.fail("nothing raised") - except ValueError as exc: + except ValueError, exc: self.assertEqual(exc.args[0], 'Section [unix_http_server] contains incomplete ' 'authentication: If a username or a password is ' @@ -1207,7 +1207,7 @@ def test_options_afinet_username_without_password(self): try: instance.read_config(StringIO(text)) self.fail("nothing raised") - except ValueError as exc: + except ValueError, exc: self.assertEqual(exc.args[0], 'Section [inet_http_server] contains incomplete ' 'authentication: If a username or a password is '