Browse Source

minor changes in OWM doc and factorisation of an error in gmail neuron

nico 8 years ago
parent
commit
c6057b2601
2 changed files with 2 additions and 5 deletions
  1. 1 5
      neurons/gmail_checker/gmail_checker.py
  2. 1 0
      neurons/openweathermap/README.md

+ 1 - 5
neurons/gmail_checker/gmail_checker.py

@@ -3,16 +3,12 @@ import logging
 
 from gmail import Gmail
 from email.header import decode_header
-from core.NeuronModule import NeuronModule
+from core.NeuronModule import NeuronModule, MissingParameterException
 
 logging.basicConfig()
 logger = logging.getLogger("kalliope")
 
 
-class MissingParameterException(Exception):
-    pass
-
-
 class Gmail_checker(NeuronModule):
     def __init__(self, **kwargs):
         super(Gmail_checker, self).__init__(**kwargs)

+ 1 - 0
neurons/openweathermap/README.md

@@ -93,3 +93,4 @@ You also can define the "location" args directly in neuron argument list.
 
 ## Notes
 
+> **Note:** You need to create a free account on [openweathermap.org](http://openweathermap.org/) to get your API key.