try-except block to handle erronneous sparser errors