Remove unnecessary exception variable

To shut VS2013 up.
Use const auto &.

As per LordAro's suggestion.