From 4c36fb4df21d5776544aeab080000de6af4f5145 Mon Sep 17 00:00:00 2001 From: Ori Kotek Date: Wed, 19 Jul 2023 18:18:18 +0300 Subject: [PATCH] args bug --- pr_agent/tools/pr_reviewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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