Only assert if input array actually has a size

incr_update_backup
Tyler Goodlet 2022-05-03 13:51:29 -04:00
parent 1967bc7973
commit e8aaf42cc6
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ class ShmArray:
# tries to access ``.array`` (which due to the index
# overlap will be empty). Pretty sure we've fixed it now
# but leaving this here as a reminder.
if prepend and update_first:
if prepend and update_first and length:
assert index < self._first.value
if (