We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
make_fetch
1 parent 5f37f83 commit e7c8943Copy full SHA for e7c8943
datajoint/autopopulate.py
@@ -412,11 +412,10 @@ def _populate1(
412
!= deepdiff.DeepHash(fetched_data, ignore_iterable_order=False)[
413
fetched_data
414
]
415
- ): # rollback due to referential integrity fail
416
- self.connection.cancel_transaction()
417
- logger.warning(
418
- f"Referential integrity failed for {key} -> {self.target.full_table_name}")
419
- return False
+ ): # raise error if fetched data has changed
+ raise DataJointError(
+ "Referential integrity failed - the `make_fetch` data has changed."
+ )
420
gen.send(computed_result) # insert
421
422
except (KeyboardInterrupt, SystemExit, Exception) as error:
0 commit comments