diff --git a/src/folio_migration_tools/migration_tasks/batch_poster.py b/src/folio_migration_tools/migration_tasks/batch_poster.py index 13ead649..4f55ab66 100644 --- a/src/folio_migration_tools/migration_tasks/batch_poster.py +++ b/src/folio_migration_tools/migration_tasks/batch_poster.py @@ -278,6 +278,8 @@ def post_batch(self, batch, failed_recs_file, num_records, recursion_depth=0): try: logging.info(response.text) resp = json.dumps(response, indent=4) + except TypeError: + resp = response except Exception: logging.exception("something unexpected happened") resp = response