aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-03-19 23:00:46 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2020-03-19 23:00:46 +0100
commitaa63263b1aaa829dba557e4c8d751558ded34b1f (patch)
treeb0dc9eb211b0687f8b3f89d05f22dbaa83d37974
parentb44e97347b2349976ffeb54da3098db7c58e0247 (diff)
downloadwee-slack-aa63263b1aaa829dba557e4c8d751558ded34b1f.tar.gz
Fix error when trying to compare SlackTS with None
-rw-r--r--wee_slack.py2
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