Merge pull request #8139 from peterkh/devel
Fix "TypeError: group id must be integer" if groupid passed in for group key
This commit is contained in:
commit
96fe275946
1 changed files with 1 additions and 1 deletions
|
@ -440,7 +440,7 @@ class User(object):
|
|||
def group_exists(self,group):
|
||||
try:
|
||||
if group.isdigit():
|
||||
if grp.getgrgid(group):
|
||||
if grp.getgrgid(int(group)):
|
||||
return True
|
||||
else:
|
||||
if grp.getgrnam(group):
|
||||
|
|
Loading…
Reference in a new issue