mirror of https://github.com/veops/cmdb.git
fix(api): common edit department return (#359)
fix(api): common edit department return (#359)
This commit is contained in:
parent
00b276d5e7
commit
f56378e2b5
|
@ -255,7 +255,7 @@ class DepartmentCRUD(object):
|
|||
return abort(400, ErrFormat.acl_update_role_failed.format(str(e)))
|
||||
|
||||
try:
|
||||
existed.update(**kwargs)
|
||||
return existed.update(**kwargs)
|
||||
except Exception as e:
|
||||
return abort(400, str(e))
|
||||
|
||||
|
|
Loading…
Reference in New Issue