aboutsummaryrefslogtreecommitdiff
path: root/b4/command.py
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-05-07 11:23:37 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-05-07 11:23:37 -0400
commitafd622604f9ec4360d50b6e32b11fc66e44d62a1 (patch)
tree616a532d104186b8f444a67e7ec806880003afbd /b4/command.py
parent82c37bbbebae6678b68580ae11a161223a8ed7b4 (diff)
downloadb4-afd622604f9ec4360d50b6e32b11fc66e44d62a1.tar.gz
Do not crash when thread is incomplete
Do not try to calculate indexes on a missing patch in an incomplete thread. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/command.py')
-rw-r--r--b4/command.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/b4/command.py b/b4/command.py
index 39ad3e5..54b79f5 100644
--- a/b4/command.py
+++ b/b4/command.py
@@ -61,7 +61,9 @@ def cmd_ty(cmdargs):
def cmd():
+ # noinspection PyTypeChecker
parser = argparse.ArgumentParser(
+ prog='b4',
description='A tool to work with public-inbox patches',
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
)