mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix syntax issue found by linter
This commit is contained in:
parent
63166d05fa
commit
d5563170ef
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ def tools_adminpw(new_password, check_strength=True):
|
||||||
# An IOError may be thrown if for some reason we can't read/write /etc/passwd
|
# An IOError may be thrown if for some reason we can't read/write /etc/passwd
|
||||||
# A KeyError could also be thrown if 'root' is not in /etc/passwd in the first place (for example because no password defined ?)
|
# A KeyError could also be thrown if 'root' is not in /etc/passwd in the first place (for example because no password defined ?)
|
||||||
# (c.f. the line about getspnam)
|
# (c.f. the line about getspnam)
|
||||||
except IOError, KeyError:
|
except (IOError, KeyError):
|
||||||
logger.warning(m18n.n('root_password_desynchronized'))
|
logger.warning(m18n.n('root_password_desynchronized'))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue