aboutsummaryrefslogtreecommitdiffstats
path: root/pushover.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2014-08-16 19:54:13 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2014-08-16 19:54:13 -0400
commit3d24207be6bf78d7449b83983fd360bb57863ac9 (patch)
tree38434a1635227c8743f4cb0b0a4e7aa5f998c23b /pushover.py
parent823f9627d370ec9ebf2639969b1a9605a178b635 (diff)
downloadpython-pushover-3d24207be6bf78d7449b83983fd360bb57863ac9.tar.gz
Fix bug: incorrect reading of configuration file
Diffstat (limited to 'pushover.py')
-rw-r--r--pushover.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pushover.py b/pushover.py
index 9cc3d1f..9782d7c 100644
--- a/pushover.py
+++ b/pushover.py
@@ -232,7 +232,7 @@ def _get_config(profile='Default', config_path='~/.pushoverrc',
config.read(config_path)
params = {"user_key": None, "api_token": None, "device": None}
try:
- params.update(dict(config.get(profile)))
+ params.update(dict(config.items(profile)))
except NoSectionError:
pass
if user_key: