Commit 011a5914 authored by Tom Harrop's avatar Tom Harrop Committed by Tom Harrop
Browse files

remove try except block

(cherry picked from commit 5279f446)
parent 8b93094c
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -3777,14 +3777,11 @@ class Pod5(Binary):

    def sniff(self, filename: str) -> bool:
        expected_signature = bytes([0x8B, 0x50, 0x4F, 0x44, 0x0D, 0x0A, 0x1A, 0x0A])
        try:
        with open(filename, "rb") as f:
            first_8_bytes = f.read(8)
            f.seek(-8, 2)
            last_8_bytes = f.read(8)
            return first_8_bytes == expected_signature and last_8_bytes == expected_signature
        except Exception:
            return False


class SearchGuiArchive(CompressedArchive):