From 87806940a39218074a78ade88d987babdc034eef Mon Sep 17 00:00:00 2001 From: Defte Date: Mon, 21 Oct 2024 10:31:15 +0200 Subject: [PATCH] Fix SAM dump failed and crash donpapi --- donpapi/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/donpapi/core.py b/donpapi/core.py index 8c1bd7d..11d3107 100644 --- a/donpapi/core.py +++ b/donpapi/core.py @@ -264,7 +264,7 @@ class DonPAPICore: # Dump SAM self.logger.display("Dumping SAM") self.dump_sam() - if self.sam_dump.items_found: + if hasattr(self.sam_dump, 'items_found') and self.sam_dump.items_found is not None: self.logger.secret(f"Got {len(self.sam_dump.items_found)} accounts", "SAM") else: self.logger.fail(f"No account found in SAM (maybe blocked by EDR)")