hotfix: Rethrow getDatabase exception

This commit is contained in:
Christian Pauly 2020-10-04 11:25:07 +02:00
parent 6ffbf16cff
commit c8d3c9d614
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ Future<Database> getDatabase(Client client) async {
await store.setItem('database-password', password);
}
return _db;
} catch (_) {
rethrow;
} finally {
_generateDatabaseLock = false;
}