From 4bb4a2016d90176938bc8737fd9f29e2d6ea2737 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 17 Oct 2018 17:37:15 -0400 Subject: Expose DataRender APIs, allow setting const on types, and allow type comparison --- python/downloadprovider.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/downloadprovider.py') diff --git a/python/downloadprovider.py b/python/downloadprovider.py index 5ce8cfce..53bd488a 100644 --- a/python/downloadprovider.py +++ b/python/downloadprovider.py @@ -58,7 +58,8 @@ class DownloadInstance(object): def _destroy_instance(self, ctxt): try: - self.__class__._registered_instances.remove(self) + if self in self.__class__._registered_instances: + self.__class__._registered_instances.remove(self) self.perform_destroy_instance() except: log.log_error(traceback.format_exc()) -- cgit v1.3.1