Adding err fields and clean_err function to celery task