Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit c15b365

Browse files
committed
fix iterating on nonexisting data
1 parent 1114e01 commit c15b365

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/datasync/datastore.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ void DataStore::iterate(int metaTypeId, const std::function<bool (QVariant)> &it
167167
try {
168168
if(!iterator(load(metaTypeId, key)))
169169
break;
170+
} catch(NoDataException &) {
171+
//no data is not considered an error in this scenario
170172
} catch (QException &e) {
171173
if(skipBroken)
172174
logWarning() << "Ignoring error on store iteration:" << e.what();

0 commit comments

Comments
 (0)