diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2014-07-28 14:41:12 +0200 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2014-07-28 14:41:12 +0200 |
| commit | 7930539e4b4cb464810fce155d53ca33676e9787 (patch) | |
| tree | 17a0cff9e6ef8d4a000db326436cbd088136fbe7 | |
| parent | 2705e945ac0f113fda2deabe7af7265537e04b5c (diff) | |
| parent | c69b2b79b81a12f3d15b6f557d63384ff23f6433 (diff) | |
| download | python-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.py | 2 |
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: |
