Skip to content

Commit 9d400d5

Browse files
authored
fix: return in finally (#518)
1 parent e9ba1e3 commit 9d400d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roborock/version_1_apis/roborock_client_v1.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ async def get_clean_record(self, record_id: int) -> CleanRecord | None:
228228
final_record.square_meter_area += (
229229
rec.square_meter_area if rec.square_meter_area is not None else 0
230230
)
231-
finally:
231+
except Exception:
232+
# Return final record when an exception occurred
232233
return final_record
233234
# There are still a few unknown variables in this.
234235
begin, end, duration, area = unpack_list(record, 4)

0 commit comments

Comments
 (0)