[minor] revert accidental change

This commit is contained in:
Marcel Paffrath 2023-12-18 16:05:24 +01:00
parent f41f24f626
commit fde000ec0d

View File

@ -400,7 +400,7 @@ class SurveillanceBot(object):
st = self.data.get(get_full_seed_id(nwst_id)) st = self.data.get(get_full_seed_id(nwst_id))
if st: if st:
# TODO: this section failed once, adding try-except block for analysis and to prevent program from crashing # TODO: this section failed once, adding try-except block for analysis and to prevent program from crashing
#try: try:
endtime = UTCDateTime() endtime = UTCDateTime()
starttime = endtime - self.parameters.get('timespan') * 24 * 3600 starttime = endtime - self.parameters.get('timespan') * 24 * 3600
st = modify_stream_for_plot(st, parameters=self.parameters) st = modify_stream_for_plot(st, parameters=self.parameters)
@ -410,9 +410,9 @@ class SurveillanceBot(object):
set_axis_yticks(fig, self.parameters) set_axis_yticks(fig, self.parameters)
set_axis_color(fig) set_axis_color(fig)
plot_axis_thresholds(fig, self.parameters) plot_axis_thresholds(fig, self.parameters)
# except Exception as e: except Exception as e:
# logging.error(f'Could not generate plot for {nwst_id}: {e}') logging.error(f'Could not generate plot for {nwst_id}: {e}')
# logging.debug(traceback.format_exc()) logging.error(traceback.format_exc())
if len(fig.axes) > 0: if len(fig.axes) > 0:
ax = fig.axes[0] ax = fig.axes[0]
ax.set_title(f'Plot refreshed at (UTC) {UTCDateTime.now().strftime("%Y-%m-%d %H:%M:%S")}. ' ax.set_title(f'Plot refreshed at (UTC) {UTCDateTime.now().strftime("%Y-%m-%d %H:%M:%S")}. '