Skip to content

Commit

Permalink
BUG: Fix clearif when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
scottclowe committed Jul 15, 2021
1 parent 320d500 commit a72729f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fissa/core.py
Expand Up @@ -1062,8 +1062,11 @@ def _unpack_scalar(x):
)

# Wipe the values currently held before setting new values
if not skip_clear and clearif in cache.files:
clearfn()
if not skip_clear:
for field in clearif:
if field in cache.files:
clearfn()
break
# All the validators were valid, so we are okay to load the fields
any_field_loaded = False
for field in fields:
Expand Down

0 comments on commit a72729f

Please sign in to comment.