Add try/except block about filename