added try/except around attribute gathering sections