Closed manrajgrover closed 6 years ago
I agree. It seems better self.stop()
instead of throwing a failure message. If we allow user to choose showing failure message or not, how we provide choices to user?
@JungWinter Users can catch the error raised and handle it according to their need.
Oh, I misunderstood. Yes it is better. If user want, they do just like this.
try:
spinner.start(text="loading")
time.sleep(999)
except KeyboardInterrupt:
spinner.fail(spinner.text)
@JungWinter Yeps!
Description of new feature, or changes
Currently, when KeyboardInterrupt is raised, handler persists current text and shows failed. We should allow user to choose the preferable output and not handle it ourselves.
Checklist
Related Issues and Discussions
Fixes #42
People to notify
@JungWinter