This is not how you turn on interpolation, and it is not a valid aggregate, the code just ignores it (well actually it tries/and fails to execute it as a custom python aggregation but I'm not sure if that is logged or it just fails silently.)
If it did throw an error, and it may, your except block would not catch it as it would be a Java Exception and not a Python Exception. You need to import java.lang.Throwable
and add a catch for that to catch any Java Errors.
dataSet = system.tag.queryTagHistory(
paths=tag_path,
startDate = startTime,
endDate = endTime,
intervalSeconds = interval_seconds,
returnFormat = 'Wide',
noInterpolation = False
)
pyData = system.dataset.toPyDataSet(dataSet)
I have ommitted the exception handling from the sample script. For proper error handling in Ignition you should follow the advice given here: