Edited error catching exception for getLogic