Update item_barcode_childtable_migrate.py

This commit is contained in:
Nabin Hait 2019-03-08 10:44:13 +05:30 committed by GitHub
parent d4754619d0
commit 9ec4816b32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,5 +27,5 @@ def execute():
'parent': item.name,
'parentfield': 'barcodes'
}).insert()
except frappe.DuplicateEntryError:
except (frappe.DuplicateEntryError, frappe.UniqueValidationError):
continue