Skip to content
Snippets Groups Projects
Commit 13efc35a authored by Luca Scarabello's avatar Luca Scarabello
Browse files

bug fix mpi: handling of unloadable chunks/templates

parent c11f3048
No related branches found
Tags v0.4.0
No related merge requests found
......@@ -82,12 +82,14 @@ class ScannedDaysManager(object):
self.__add_entry(self.to_process, chunk, template)
def remove_chunk(self, chunk):
self.chunks.remove(chunk)
if chunk in self.chunks:
self.chunks.remove(chunk)
if chunk in self.to_process:
del self.to_process[chunk]
def remove_template(self, template):
self.templates.remove(template)
if template in self.templates:
self.templates.remove(template)
for chunk in self.to_process[:]:
self.__remove_entry(self.to_process, chunk, template)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment