Skip to content

Commit e7f7b00

Browse files
jstuckeeuwint
authored andcommitted
fix: don't log exceptions in case of single update timeouts
1 parent da89d51 commit e7f7b00

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/intercom/back_end_binding.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,11 @@ def get_response(self, task: Firmware):
139139
if not event.is_set():
140140
raise TimeoutError
141141
return True
142-
except (TimeoutError, KeyError):
142+
except TimeoutError:
143+
logging.warning(f'Timeout during single file update of {task.uid}.')
144+
except KeyError:
143145
logging.exception('Single file update failed.')
144-
return False
146+
return False
145147

146148

147149
class InterComBackEndCompareTask(InterComListener):

0 commit comments

Comments
 (0)