Update TsGetWbs

Updated Error handling