Skip to content

Commit e342f22

Browse files
committed
enable dealing with empty metadata in tests
1 parent 9734ad2 commit e342f22

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • activity_browser/bwutils/searchengine

activity_browser/bwutils/searchengine/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ def update_dict(update_me: dict, new: dict) -> dict:
114114
update_me = update_me | new_data
115115
return update_me
116116

117+
if len(update_df) == 0:
118+
return
119+
117120
t = time()
118121
size_old = len(self.df)
119122
# identifier to word and df

0 commit comments

Comments
 (0)