mirror of
https://github.com/FAUSheppy/ths-datenlogger
synced 2025-12-07 12:31:34 +01:00
add error message for bad output fext
This commit is contained in:
@@ -198,11 +198,16 @@ class WidgetGallery(QDialog):
|
|||||||
endDateTime = dt.datetime.combine(self.endDateEdit.date().toPyDate(), zeroTime)
|
endDateTime = dt.datetime.combine(self.endDateEdit.date().toPyDate(), zeroTime)
|
||||||
endDateTime += endTimeOffset
|
endDateTime += endTimeOffset
|
||||||
|
|
||||||
self.truePath = plot.plot(self.datapoints, path=target,
|
try:
|
||||||
|
self.truePath = plot.plot(self.datapoints, path=target,
|
||||||
date1=startDateTime,
|
date1=startDateTime,
|
||||||
date2=endDateTime,
|
date2=endDateTime,
|
||||||
forcePath=forcePath,
|
forcePath=forcePath,
|
||||||
qtTextBrowser=self.infoTextBox)
|
qtTextBrowser=self.infoTextBox)
|
||||||
|
except ValueError as e:
|
||||||
|
self.infoTextBox.append("ERROR: " + str(e))
|
||||||
|
self.buttonGo.setText(self.localization.button_go)
|
||||||
|
return
|
||||||
|
|
||||||
self.buttonGo.setText(self.localization.button_go)
|
self.buttonGo.setText(self.localization.button_go)
|
||||||
self.buttonGo.setDisabled(False)
|
self.buttonGo.setDisabled(False)
|
||||||
|
|||||||
Reference in New Issue
Block a user