Fixed: wrap gamera initialization into try..except block