diff options
| author | jason | 2016-08-10 22:25:22 -0600 |
|---|---|---|
| committer | jason | 2016-08-10 22:25:22 -0600 |
| commit | c6d5658f571e7a9e754886dd3ee37813d70a9fcc (patch) | |
| tree | 8a884922e1e62678f2dc4718ef3d8ce4e58bfe59 | |
| parent | 96ce83f826d37ad8430c9efddcc8fd880a0c293b (diff) | |
| download | warmachine-ng-c6d5658f571e7a9e754886dd3ee37813d70a9fcc.tar.gz warmachine-ng-c6d5658f571e7a9e754886dd3ee37813d70a9fcc.zip | |
fix a bug
| -rw-r--r-- | warmachine/addons/standup.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/warmachine/addons/standup.py b/warmachine/addons/standup.py index 99094d5..52d9df0 100644 --- a/warmachine/addons/standup.py +++ b/warmachine/addons/standup.py | |||
| @@ -272,7 +272,10 @@ class StandUpPlugin(WarMachinePlugin): | |||
| 272 | Load the channel schedules from a file. | 272 | Load the channel schedules from a file. |
| 273 | """ | 273 | """ |
| 274 | with open('/home/jason/.warmachine/standup_schedules.json', 'r') as f: | 274 | with open('/home/jason/.warmachine/standup_schedules.json', 'r') as f: |
| 275 | data = json.loads(f.read()) | 275 | try: |
| 276 | data = json.loads(f.read()) | ||
| 277 | except: | ||
| 278 | return | ||
| 276 | 279 | ||
| 277 | for channel in data[connection.id]: | 280 | for channel in data[connection.id]: |
| 278 | self.schedule_standup( | 281 | self.schedule_standup( |