Skip to content

Instantly share code, notes, and snippets.

@mayhem
Created April 14, 2021 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mayhem/bc2bb75cf057d1c13922e802d087aa54 to your computer and use it in GitHub Desktop.
Save mayhem/bc2bb75cf057d1c13922e802d087aa54 to your computer and use it in GitHub Desktop.
diff --git a/listenbrainz/timescale_writer/timescale_writer.py b/listenbrainz/timescale_writer/timescale_writer.py
index ade24d34..a5423b6c 100755
--- a/listenbrainz/timescale_writer/timescale_writer.py
+++ b/listenbrainz/timescale_writer/timescale_writer.py
@@ -176,7 +176,7 @@ class TimescaleWriterSubscriber(ListenWriter):
except Exception as err:
traceback.print_exc()
- current_app.logger.error("failed to start timescale loop ", str(err))
+ current_app.logger.error("failed to start timescale loop ", str(err, errors='ignore'))
if __name__ == "__main__":
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment