diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-03-19 23:00:46 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-03-19 23:00:46 +0100 |
commit | aa63263b1aaa829dba557e4c8d751558ded34b1f (patch) | |
tree | b0dc9eb211b0687f8b3f89d05f22dbaa83d37974 | |
parent | b44e97347b2349976ffeb54da3098db7c58e0247 (diff) | |
download | wee-slack-aa63263b1aaa829dba557e4c8d751558ded34b1f.tar.gz |
Fix error when trying to compare SlackTS with None
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index eb01683..da7bdee 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2575,7 +2575,7 @@ class SlackTS(object): return 1 else: return 0 - else: + elif isinstance(other, str): s = self.__str__() if s < other: return -1 |