(self)
| 48 | log.error("Could not create device details report: %s", e) |
| 49 | |
| 50 | def packetDetails(self) -> None: |
| 51 | try: |
| 52 | packet_file = os.path.join(self.directory, self.filename + "_packet_details.txt") |
| 53 | with open(packet_file, "w") as f: |
| 54 | f.write("%s\n" % _dumps(memory.packet_db, indent=2, sort_keys=True)) |
| 55 | except Exception as e: |
| 56 | log.error("Could not create packet details report, trying backup: %s", e) |
| 57 | self.backupReport() |
| 58 | |
| 59 | def backupReport(self) -> None: |
| 60 | try: |