added some try/except cases
Merge branch 'master' of github.com:domogik/domogik