diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index 425b54d8..d4199fe7 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -1953,18 +1953,19 @@ class MachineCom(object): return False - _resend_request_communication_errors = ("line number", - "wrong checksum", - "missing checksum", - "format error", - "expected line") - _recoverable_communication_errors = ("no line number with checksum",) - _sd_card_errors = ("volume.init", - "openroot", - "workdir", - "error writing to file", - "cannot open", - "cannot enter") + _recoverable_communication_errors = ("no line number with checksum",) + _resend_request_communication_errors = ("line number", # since this error class get's checked after recoverable + # communication errors, we can use this broad term here + "checksum", # since this error class get's checked after recoverable + # communication errors, we can use this broad term here + "format error", + "expected line") + _sd_card_errors = ("volume.init", + "openroot", + "workdir", + "error writing to file", + "cannot open", + "cannot enter") def _handle_errors(self, line): if line is None: return