diff options
Diffstat (limited to 'test/test_python_application.py')
-rw-r--r-- | test/test_python_application.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_python_application.py b/test/test_python_application.py index 871d8bc0..83b0c8f4 100644 --- a/test/test_python_application.py +++ b/test/test_python_application.py @@ -730,7 +730,7 @@ last line: 987654321 try: group_id = grp.getgrnam(group).gr_gid - except: + except KeyError: group = 'nogroup' group_id = grp.getgrnam(group).gr_gid @@ -775,7 +775,7 @@ last line: 987654321 try: grp.getgrnam(group) group = True - except: + except KeyError: group = False if group: |