catch attributeerror, fixes #3