Make a note of a record that was dropped during processing.
(table: str, id: Any, exception: Exception)
| 70 | |
| 71 | |
| 72 | def write_dropped_record(table: str, id: Any, exception: Exception) -> None: |
| 73 | """Make a note of a record that was dropped during processing.""" |
| 74 | with open(DROPPED_RECORDS_FILENAME, 'a') as f: |
| 75 | msg = str(exception).replace('"', "'").replace("\n", " ~ ") |
| 76 | f.write(f"{table},{str(id)},\"{msg}\"\n") |
| 77 | |
| 78 | |
| 79 | def write_last_session_id(session_id: Any) -> None: |
no outgoing calls
no test coverage detected
searching dependent graphs…