Fix panic on import with existing scene (#205)

This commit is contained in:
WithoutPants 2019-11-16 08:34:01 +11:00 committed by Leopere
parent 5c0ec39db1
commit 9e8d7bb26f

View file

@ -443,7 +443,7 @@ func (t *ImportTask) ImportScenes(ctx context.Context) {
scene, err := qb.Create(newScene, tx)
if err != nil {
_ = tx.Rollback()
logger.Errorf("[scenes] <%s> failed to create: %s", scene.Checksum, err.Error())
logger.Errorf("[scenes] <%s> failed to create: %s", mappingJSON.Checksum, err.Error())
return
}
if scene.ID == 0 {