Skip to content

Commit 25fc38d

Browse files
committed
Do not mark the build as failure when it's a BuildEnvironmentWarning
1 parent 1c8a7b4 commit 25fc38d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readthedocs/doc_builder/environments.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,10 @@ def handle_exception(self, exc_type, exc_value, _):
472472
log_level_function = log.warning
473473
elif exc_type in self.WARNING_EXCEPTIONS:
474474
log_level_function = log.warning
475+
self.failure = exc_value
475476
else:
476477
log_level_function = log.error
478+
self.failure = exc_value
477479

478480
log_level_function(
479481
LOG_TEMPLATE.format(
@@ -491,7 +493,6 @@ def handle_exception(self, exc_type, exc_value, _):
491493
},
492494
},
493495
)
494-
self.failure = exc_value
495496
return True
496497

497498
def record_command(self, command):

0 commit comments

Comments
 (0)