Password: Make chpass-wrapper.py Python 3 compatible (#7135)

Remove the ", e" as the exception is never printed and this makes it
Python 3 compatible as well

Closes: #7118
bnet/additions
jelle van der Waa 4 years ago committed by Aleksander Machniak
parent b421de8416
commit 2edcf5b52c

@ -11,12 +11,12 @@ BLACKLIST = (
try:
username, password = sys.stdin.readline().split(':', 1)
except ValueError, e:
except ValueError:
sys.exit('Malformed input')
try:
user = pwd.getpwnam(username)
except KeyError, e:
except KeyError:
sys.exit('No such user: %s' % username)
if user.pw_uid < 1000:

Loading…
Cancel
Save