summaryrefslogtreecommitdiff
path: root/python/filemetadata.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-09-06 11:38:59 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-06 11:46:44 -0400
commit5a1f98b0e46d0077f777cb90e7d9d916c9186535 (patch)
treef90bcc662dcf85fad1d2b5ef262568e5dc905d2e /python/filemetadata.py
parenta377529b29b43e35cce8763ec4077b329b218f43 (diff)
Fix some unnecessary checks for handle is not None in destructors
Diffstat (limited to 'python/filemetadata.py')
-rw-r--r--python/filemetadata.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/python/filemetadata.py b/python/filemetadata.py
index 5a3e4d4e..f4cc75f3 100644
--- a/python/filemetadata.py
+++ b/python/filemetadata.py
@@ -263,14 +263,12 @@ class FileMetadata:
@navigation.setter
def navigation(self, value:NavigationHandler) -> None:
- assert self.handle is not None
value._register(self.handle)
self._nav = value
@property
def session_data(self) -> Any:
"""Dictionary object where plugins can store arbitrary data associated with the file"""
- assert self.handle is not None, "Attempting to set session_data when handle is None"
handle = ctypes.cast(self.handle, ctypes.c_void_p) # type: ignore
if handle.value not in FileMetadata._associated_data:
obj = _FileMetadataAssociatedDataStore()