Raise NameError Exceptions when not in production