catch error when contents method is not allowed on element
Merge pull request #10 from DinoRosic/error_handling_on_contents

Catch error when contents method raises exception