mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Fix panic on import with existing scene (#205)
This commit is contained in:
@@ -443,7 +443,7 @@ func (t *ImportTask) ImportScenes(ctx context.Context) {
|
|||||||
scene, err := qb.Create(newScene, tx)
|
scene, err := qb.Create(newScene, tx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
_ = tx.Rollback()
|
_ = 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
|
return
|
||||||
}
|
}
|
||||||
if scene.ID == 0 {
|
if scene.ID == 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user