summaryrefslogtreecommitdiff
path: root/python/downloadprovider.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2018-10-17 17:37:15 -0400
committerPeter LaFosse <peter@vector35.com>2018-10-19 10:05:09 -0400
commit4bb4a2016d90176938bc8737fd9f29e2d6ea2737 (patch)
treec3a4f4573fbceafd1eb07cf0a7beaea528c79d83 /python/downloadprovider.py
parent8de8bad6f2f5517d858568a9871dd99f7e8d5d4b (diff)
Expose DataRender APIs, allow setting const on types, and allow type comparison
Diffstat (limited to 'python/downloadprovider.py')
-rw-r--r--python/downloadprovider.py3
1 files changed, 2 insertions, 1 deletions
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())