(self, fd)
| 119 | return self._handle509Bug(e) |
| 120 | |
| 121 | def from_descriptor(self, fd): |
| 122 | with self.lock: |
| 123 | try: |
| 124 | return maybe_decode(magic_descriptor(self.cookie, fd)) |
| 125 | except MagicException as e: |
| 126 | return self._handle509Bug(e) |
| 127 | |
| 128 | def _handle509Bug(self, e): |
| 129 | # libmagic 5.09 has a bug where it might fail to identify the |