add try...except to getsize