summaryrefslogtreecommitdiff
path: root/python/downloadprovider.py
diff options
context:
space:
mode:
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())