catch error raised inside the settings code
oups bad copy-paste
fix indentation
Merge pull request #16 from bclermont/fix-import

catch error raised inside settings code