aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--b4/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index e511f51..d42051d 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -877,7 +877,10 @@ class LoreMessage:
if hunk_match:
# logger.debug('Crunching %s', line)
mlines, plines = hunk_match.groups()
- pp = int(plines)
+ try:
+ pp = int(plines)
+ except TypeError:
+ pp = 1
addlines = list()
for bline in reversed(buflines):
# Go backward and add lines until we get to the start