Ensure before_sleep_log message isn't multiline#512
Ensure before_sleep_log message isn't multiline#512sebastian-correa wants to merge 1 commit intojd:mainfrom
before_sleep_log message isn't multiline#512Conversation
|
|
Some exceptions add extra `\n` characters to their message, causing the last . in the log to be a new line.
07fe63e to
8922430
Compare
|
I'm failing to see how this is a problem in tenacity itself and not in the so called exception though |
|
@jd the PR's title might be a bit overreaching, since it won't solve actual multiline string representations (i.e., if the exception has I do agree that the actual problem is more probably in the exception, but |
|
Right; I'd rather change the log line to not have a final |
Some exceptions add extra
\ncharacters to their message, causing the last . in the log to be a new line.