anonymousland-synapse/scripts
Andrew Morgan a312e890f5
Cast errors generated during synapse_port_db to str (#8585)
I noticed in https://github.com/matrix-org/synapse/issues/8575 that the `end_error` variable in `synapse_port_db` is set to an `Exception`, even though later we expect it to be a `str`.

This PR simply casts an exception raised to a string. I'm doing this instead of having `end_error` be of type exception as we explicitly set `end_error` to a str here:

d25eb8f370/scripts/synapse_port_db (L542-L547)

This whole file could probably use some heavy refactoring, but until then at least this fix will prevent exception contents from being hidden from us and users.
2020-10-20 11:47:24 +01:00
..
export_signing_key
generate_config
generate_log_config
generate_signing_key.py
hash_password
move_remote_media_to_new_store.py Remove obsolete __future__ imports (#8337) 2020-09-17 08:37:01 -04:00
register_new_matrix_user Remove obsolete __future__ imports (#8337) 2020-09-17 08:37:01 -04:00
synapse_port_db Cast errors generated during synapse_port_db to str (#8585) 2020-10-20 11:47:24 +01:00
sync_room_to_group.pl