Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the following improvements to the project:
title
attribute of theChat
object fromNone
to an empty string (see #126-comment)For 1 and 2, please see the referred PR and comment.
For 3, the current implementation will set the exit status to 1 on any exceptions raised, including the
KeyboardInterrupt
. However, if you want to set different exit statuses for different exceptions, the value can be customized by returning directly at the end of eachexcept
block. This can be useful when waiting for the chat to become available using awhile
loop in the shell, if the chat was disabled until the live started. Given that the project doesn't have a built-in solution for waiting for the chat to become available, this small change would solve the problem with minimal effort, and it is also a common practice to set the exit status of a program to non-zero values if the exit was caused by errors.