Print stack trace for ignored exceptions in the push_data recipe

And drop useless continues
This commit is contained in:
Marco Castelluccio 2019-11-14 23:36:54 +01:00
Родитель 0be2a5b679
Коммит cfa3d43108
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -8,6 +8,7 @@ Generate test-related data about pushes.
import json
import os
import traceback
from adr import config
from adr.errors import MissingDataError
@ -55,10 +56,8 @@ def run(args):
config.cache.forever(key, value)
except MissingDataError:
logger.warning(f"Tasks for push {push.rev} can't be found on ActiveData")
continue
except Exception as e:
logger.error(e)
continue
traceback.print_exc()
logger.info(f"{num_cached} pushes were already cached out of {len(pushes)}")