try catch while closing page

This commit is contained in:
2023-12-13 10:19:41 +01:00
parent 95c62a614c
commit 549fc6e5eb
+4
View File
@@ -715,7 +715,11 @@ class CommandorPage {
let reserve = ReserveResultPojo.create_from_contact(this.contact, id, url, this.choosedStore, publishType); let reserve = ReserveResultPojo.create_from_contact(this.contact, id, url, this.choosedStore, publishType);
reserve.source_from = this.device.model(); reserve.source_from = this.device.model();
await this.mongoManager.saveReserveToDb(reserve.to_mongo_dict()) await this.mongoManager.saveReserveToDb(reserve.to_mongo_dict())
try {
await this.page.close(); await this.page.close();
} catch (e) {
console.log(e)
}
// await this.deleteFromBlackList() // await this.deleteFromBlackList()
this.isTerminated = true this.isTerminated = true
} }