From ff108ef24b6fb55e5a44f06f1e157d9091da9a44 Mon Sep 17 00:00:00 2001 From: Lee Bousfield Date: Sat, 23 Jul 2016 15:03:22 -0400 Subject: [PATCH] Catch a ValueError when checking if a user exists --- src/borg/testsuite/platform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/testsuite/platform.py b/src/borg/testsuite/platform.py index 183e10a08..0001eeecd 100644 --- a/src/borg/testsuite/platform.py +++ b/src/borg/testsuite/platform.py @@ -40,7 +40,7 @@ def user_exists(username): try: pwd.getpwnam(username) return True - except KeyError: + except (KeyError, ValueError): return False