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

时间:2017-09-14 09:54:39

标签: python shotgun

我正在使用shotgun python api来创建,删除,更新霰弹枪,但我得到错误可以解决这个问题吗?

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"

1 个答案:

答案 0 :(得分:0)

您尝试删除:,"图标":"有效"

import shotgun_api3

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

print shot