- for field_name, book in tasks:
- print(field_name, book)
- try:
- getattr(book, field_name).build()
- except Exception as e:
- print('ERROR', e)
+ field_name, book = tasks.pop(0)
+ print(field_name, book)
+ counter += 1
+ try:
+ getattr(book, field_name).build()
+ except Exception as e:
+ print('ERROR', e)