Skip to content

Commit 1734307

Browse files
committed
Moved args.targets check back in order to not trigger test case
1 parent 98666b9 commit 1734307

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dissect/target/tools/query.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ def main() -> int:
123123
"The --rewrite-cache option will be ignored as --no-cache or --only-read-cache are specified",
124124
)
125125

126-
if not args.targets:
127-
parser.error("too few arguments - missing targets")
128-
129126
# Process plugin argments after host and child args are checked
130127
different_output_types = process_plugin_arguments(parser, args, rest)
131128

129+
if not args.targets:
130+
parser.error("too few arguments - missing targets")
131+
132132
if args.report_dir and not args.report_dir.is_dir():
133133
parser.error(f"--report-dir {args.report_dir} is not a valid directory")
134134

0 commit comments

Comments
 (0)