@@ -536,15 +536,15 @@ def includes_html(self):
536536 """Does the build we are running include HTML output?"""
537537 return self .select_output != "no-html"
538538
539- def run (self , http : urllib3 .PoolManager ) -> bool :
539+ def run (self , http : urllib3 .PoolManager ) -> bool | None :
540540 """Build and publish a Python doc, for a language, and a version."""
541541 start_time = perf_counter ()
542542 start_timestamp = dt .datetime .now (tz = dt .UTC ).replace (microsecond = 0 )
543543 logging .info ("Running." )
544544 try :
545545 if self .language .html_only and not self .includes_html :
546546 logging .info ("Skipping non-HTML build (language is HTML-only)." )
547- return True
547+ return None # skipped
548548 self .cpython_repo .switch (self .version .branch_or_tag )
549549 if self .language .tag != "en" :
550550 self .clone_translation ()
@@ -557,6 +557,8 @@ def run(self, http: urllib3.PoolManager) -> bool:
557557 build_duration = perf_counter () - start_time ,
558558 trigger = trigger_reason ,
559559 )
560+ else :
561+ return None # skipped
560562 except Exception as err :
561563 logging .exception ("Badly handled exception, human, please help." )
562564 if sentry_sdk :
@@ -1073,7 +1075,7 @@ def build_docs(args: argparse.Namespace) -> bool:
10731075 built_successfully = builder .run (http )
10741076 if built_successfully :
10751077 build_succeeded .add ((version .name , language .tag ))
1076- else :
1078+ elif built_successfully is not None :
10771079 build_failed .add ((version .name , language .tag ))
10781080
10791081 logging .root .handlers [0 ].setFormatter (
0 commit comments