diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2014-08-16 19:54:13 -0400 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2014-08-16 19:54:13 -0400 |
| commit | 3d24207be6bf78d7449b83983fd360bb57863ac9 (patch) | |
| tree | 38434a1635227c8743f4cb0b0a4e7aa5f998c23b | |
| parent | 823f9627d370ec9ebf2639969b1a9605a178b635 (diff) | |
| download | python-pushover-3d24207be6bf78d7449b83983fd360bb57863ac9.tar.gz | |
Fix bug: incorrect reading of configuration file
| -rw-r--r-- | pushover.py | 2 |
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: |
