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