使用python shotgun api在shotgun中创建状态时出错

使用python shotgun api在shotgun中创建状态时出错,python,shotgun,Python,Shotgun,我正在使用shotgun python api在shotgun中创建、删除和更新,但我遇到了一个错误,有人能解决这个问题吗 import shotgun_api3 shot = sg.create("Status",{"code":"Done1","name":"new1","icon":"Active"}) print shot 错误 您尝试删除:,“图标”:“活动” Fault: API create() Status.icon expected [Hash, NilClass] d

我正在使用shotgun python api在shotgun中创建、删除和更新,但我遇到了一个错误,有人能解决这个问题吗

import shotgun_api3

shot = sg.create("Status",{"code":"Done1","name":"new1","icon":"Active"})

print shot

错误 您尝试删除:,“图标”:“活动”

Fault: API create() Status.icon expected [Hash, NilClass] data type(s) but got 
String:"Active"
import shotgun_api3

shot = sg.create("Status",{"code":"Done1","name":"new1"})

print shot