logger.debug("Touching %s", timestamp_file)
file_utils.touch_file(timestamp_file)
return ret
- except Exception as e:
- logger.exception(e)
+ except Exception:
+ msg = "Cron subprocess failed; giving up."
+ logger.exception(msg)
print("Cron subprocess failed, giving up.", file=sys.stderr)
- logger.warning("Cron subprocess failed, giving up")
return -1000
file=wf,
)
return retval
- except lockfile.LockFileException as e:
- logger.exception(e)
+ except lockfile.LockFileException:
msg = f"Failed to acquire {lockfile_path}, giving up."
- logger.error(msg)
+ logger.exception(msg)
print(msg, file=sys.stderr)
return 1000
else:
else:
self.handle_event_with_fixed_year(orig_date, label)
- except Exception as e:
+ except Exception:
+ logger.exception("Skipping malformed line: %s", line)
print(f"Skipping unparsable line: {line}", file=sys.stderr)
- logger.error("Skipping malformed line: %s", line)
- logger.exception(e)
def remind(
self, count: Optional[int], days_ahead: Optional[int], say_date: bool