Closed tlambert03 closed 4 years ago
I'd err on the side of ditching. This class should really have no concept of self.ctx
(That's a purely CLI thing.) Looking at this, I think this should also be a warn. The user has requested a timeout, and if that can't be set (or is incorrect) it seems like at least a WARN. (Perhaps the exception should even be thrown, but I'll need to review more for that.)
k, happy to convert to a warn or raise. just let me know.
Let's go with a warn and get it released, then I can follow up with the rest.
k, do you want the formatted traceback in the warning?
EDIT: updated with a simple warning. let me know if you want specific info in there
Sorry for being a pain, @tlambert03, but can we go back to 2d34519dd2d7338b0bf5e47762ff6c4988653175 and:
WARN
, andok have another look at your convenience. if you also wanted the self.ctx
check added back, lemme know.
ok have another look at your convenience.
Awesome, thank you!
if you also wanted the
self.ctx
check added back, lemme know.
Nah. That should have never happened. :+1:
one possible solution that fixes #225 but still lets you log from
self.ctx
if you want. Or just let me know if you want to ditch self.ctx altogether.