Fix missing tg_idx_count attribute on task generators

This commit is contained in:
Thomas Nagy 2017-06-16 00:28:49 +02:00
parent f49f162817
commit a550472fcb
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ class Task(evil):
:return: the priority value
:rtype: a tuple of numeric values
"""
return (self.weight + self.prio_order, - self.generator.tg_idx_count)
return (self.weight + self.prio_order, - getattr(self.generator, 'tg_idx_count', 0))
def split_argfile(self, cmd):
"""