avibrazil / iOSbackup

A Python 3 class that reads and extracts files from a password-encrypted iOS backup created by iTunes on Mac and Windows. Compatible with iOS 14. Class works on Linux too.
225 stars 38 forks source link

Checking if self.manifestDB is set, otherwise TypeError is raised #8

Closed botherder closed 3 years ago

botherder commented 3 years ago

If for some reason the decryption fails, this close() is called by __del__ without self.manifestDB, which raises a TypeError exception. Checking first before calling os.remove.

botherder commented 3 years ago

Nevermind, just noticed someone already opened #7. Fixing same issue.