Struggling with a `BrokenPipeError`

This works great: #conversion.pydef to_string(data): if isinstance(data, bytes): r - Pastebin.com

But this version: #waves_exchange.pyimport ccxtfrom loguru import loggerfrom conversion impo - Pastebin.com fails with a BrokenPipeError (22:47:53 [Errno 32] Broken pipe). What’s the issue and how exactly is it avoided?