aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2014-07-28 14:41:12 +0200
committerThibaut Horel <thibaut.horel@gmail.com>2014-07-28 14:41:12 +0200
commit7930539e4b4cb464810fce155d53ca33676e9787 (patch)
tree17a0cff9e6ef8d4a000db326436cbd088136fbe7
parent2705e945ac0f113fda2deabe7af7265537e04b5c (diff)
parentc69b2b79b81a12f3d15b6f557d63384ff23f6433 (diff)
downloadpython-pushover-7930539e4b4cb464810fce155d53ca33676e9787.tar.gz
Merge branch 'master' of https://github.com/Crupuk/python-pushover
Conflicts: pushover.py use `value is True` instead of `value == True`
-rw-r--r--pushover.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pushover.py b/pushover.py
index 68765dc..2a7c61d 100644
--- a/pushover.py
+++ b/pushover.py
@@ -196,7 +196,7 @@ class Client:
if key not in valid_keywords:
raise ValueError("{0}: invalid message parameter".format(key))
- if key == "timestamp" and value:
+ if key == "timestamp" and value is True:
payload[key] = int(time.time())
elif key == "sound":
if not SOUNDS: