Skip to content

Commit

Permalink
Add in another catch and change to log.error
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacna committed Jan 27, 2022
1 parent 128ea0d commit ee791de
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cdp_backend/pipeline/event_gather_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ def _process_person_ingestion(
)
except (FileNotFoundError, ClientResponseError, ConnectionError) as e:
person_picture_db_model = None
log.warning(
log.error(
f"Person ('{person.name}'), picture URI could not be archived."
f"({person.picture_uri}). Error: {e}"
)
Expand All @@ -1028,7 +1028,7 @@ def _process_person_ingestion(
InvalidFieldType,
ConnectionError,
):
log.warning(
log.error(
f"Person ({person_db_model.to_dict()}), "
f"was missing required information. Generating minimum person details."
)
Expand Down Expand Up @@ -1077,7 +1077,7 @@ def _process_person_ingestion(

except (FileNotFoundError, ClientResponseError, ConnectionError) as e:
person_seat_image_db_model = None
log.warning(
log.error(
f"Person ('{person.name}'), seat image URI could not be archived."
f"({person.seat.image_uri}). Error: {e}"
)
Expand Down Expand Up @@ -1246,8 +1246,8 @@ def store_event_processing_results(
db_model=event_db_model,
credentials_file=credentials_file,
)
except FieldValidationFailed:
log.warning(
except (FieldValidationFailed, ConnectionError):
log.error(
f"Agenda and/or minutes docs could not be found. "
f"Adding event without agenda and minutes URIs. "
f"({event.agenda_uri} AND/OR {event.minutes_uri} do not exist)"
Expand Down Expand Up @@ -1448,7 +1448,7 @@ def store_event_processing_results(
credentials_file=credentials_file,
)
except (FieldValidationFailed, ConnectionError) as e:
log.warning(
log.error(
f"MatterFile ('{supporting_file.uri}') "
f"could not be archived. Skipping. Error: {e}"
)
Expand Down

0 comments on commit ee791de

Please sign in to comment.