We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bbb281 commit 604799bCopy full SHA for 604799b
lib/python/moteus/moteus_tool.py
@@ -30,6 +30,7 @@
30
import tempfile
31
import time
32
import uuid
33
+import traceback
34
35
from . import moteus
36
from . import aiostream
@@ -454,7 +455,14 @@ async def do_flash(self, elffile):
454
455
456
if not self.args.bootloader_active:
457
# Get the current firmware version.
- old_firmware = await self.read_data("firmware")
458
+ try:
459
+ old_firmware = await self.read_data("firmware")
460
+ except RuntimeError as e:
461
+ if self.args.no_restore_config:
462
+ pass
463
+ else:
464
+ print(f"Couldn't calpture old config. Consider using --no_restore_config to skip this step.")
465
+ raise e
466
467
upgrade = FirmwareUpgrade(
468
elf.firmware_version
0 commit comments