diff --git a/python/src/table.rs b/python/src/table.rs index 3fa0a5a08..a0462caf3 100644 --- a/python/src/table.rs +++ b/python/src/table.rs @@ -1172,10 +1172,10 @@ impl Table { } } } - if let Some(replace) = update.get_item("replace")? { - if replace.extract::()? { - field_update = field_update.replace(); - } + if let Some(replace) = update.get_item("replace")? + && replace.extract::()? + { + field_update = field_update.replace(); } Ok(field_update) })