Deduplicated code for issue #33. Fixed Pitt data error handling
Deduplicated code for issue #33. Fixed Pitt data error handling

SPN11/PantherView,kingsman142/PantherView,SPN11/PantherView,SPN11/PantherView,Pitt-CSC/PantherView,Pitt-CSC/PantherView,kingsman142/PantherView