diff --git a/pr_agent/tools/pr_reviewer.py b/pr_agent/tools/pr_reviewer.py index 80782546..c9446029 100644 --- a/pr_agent/tools/pr_reviewer.py +++ b/pr_agent/tools/pr_reviewer.py @@ -54,7 +54,7 @@ class PRReviewer: def parse_args(self, args): is_incremental = False - if len(args) >= 1: + if args and len(args) >= 1: arg = args[0] if arg == "-i": is_incremental = True