Browse Source

Fixed cache_max_age default value

Clara Hobbs 7 years ago
parent
commit
243bcd60ac
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      kayleevc/plugins/darksky.py

+ 1
- 1
kayleevc/plugins/darksky.py View File

@@ -45,7 +45,7 @@ class Plugin(PluginBase):
45 45
         )
46 46
         try:
47 47
             self._cache_max_age = self.options['cache_max_age']
48
-        except NameError:
48
+        except KeyError:
49 49
             self._cache_max_age = 1800
50 50
 
51 51
         self.commands = {

Loading…
Cancel
Save