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
pull/6453/head^2
jelle van der Waa 5 years ago committed by Aleksander Machniak
parent 5a1a33752e
commit 11e5c1af4f

@ -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