removed unused var in exception handling