diff options
| author | Peter LaFosse <peter@vector35.com> | 2018-10-17 17:37:15 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2018-10-19 10:05:09 -0400 |
| commit | 4bb4a2016d90176938bc8737fd9f29e2d6ea2737 (patch) | |
| tree | c3a4f4573fbceafd1eb07cf0a7beaea528c79d83 /python/downloadprovider.py | |
| parent | 8de8bad6f2f5517d858568a9871dd99f7e8d5d4b (diff) | |
Expose DataRender APIs, allow setting const on types, and allow type comparison
Diffstat (limited to 'python/downloadprovider.py')
| -rw-r--r-- | python/downloadprovider.py | 3 |
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()) |
