The packaged db functions in core/db.py catches the exception, logs it, drops it, and sets success to false.

As it fails to provide any useful information at this point in execution, the assertion, which raises an AssertionError, is the best we can do with this.