Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: add whitespace and correct typos in __init__.py
Added missing whitespace for better readability and fixed minor typos in help_message and alert_move_message. Improved assertions and refactored redundant checks for cleaner test logic.
  • Loading branch information
avijitdas126 committed Feb 5, 2025
commit 078a153d681ce3d2387e8d8d29e7ac295878ffb8
4 changes: 3 additions & 1 deletion zulip/zulip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,9 @@ def __init__(
server_settings = self.get_server_settings()
self.zulip_version: Optional[str] = server_settings.get("zulip_version")
self.feature_level: int = server_settings.get("zulip_feature_level", 0)
assert self.zulip_version is not None
# Optional: Handle absence of `zulip_version` without assertion
if self.zulip_version is None:
logger.warning("Zulip version not found. The client may not be fully compatible.")

def ensure_session(self) -> None:
# Check if the session has been created already, and return
Expand Down
Loading