Skip to content

Commit 4623375

Browse files
committed
Handle errors in info command
1 parent b513491 commit 4623375

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

reolinkfw/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ async def info(args: Namespace) -> None:
1717
if args.json is None:
1818
width = 21
1919
for idx, info in enumerate(pak_infos):
20+
if "error" in info:
21+
raise Exception(info["error"])
2022
info = Namespace(**info)
2123
fs_types = set(fs["type"] for fs in info.filesystems)
2224
fs_names = [fs["name"] for fs in info.filesystems]

0 commit comments

Comments
 (0)