summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/upgrade.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/upgrade.py b/source4/scripting/python/samba/upgrade.py
index 60cff51198..53ae93afcf 100644
--- a/source4/scripting/python/samba/upgrade.py
+++ b/source4/scripting/python/samba/upgrade.py
@@ -591,7 +591,7 @@ Please fix this account before attempting to upgrade again
except passdb.error:
try:
uids[username] = pwd.getpwnam(username).pw_uid
- except passdb.error:
+ except KeyError:
pass
if not admin_user and username.lower() == 'root':