Fix SAM dump failed and crash donpapi

This commit is contained in:
Defte 2024-10-21 10:31:15 +02:00
parent 08282a06d2
commit 87806940a3
1 changed files with 1 additions and 1 deletions

View File

@ -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)")