potiuk commented on code in PR #38489:
URL: https://github.com/apache/airflow/pull/38489#discussion_r1539718063


##########
scripts/ci/pre_commit/pre_commit_generate_pypi_readme.py:
##########
@@ -54,7 +54,7 @@ def extract_section(content, section_name):
     if section_match:
         return section_match.group(1)
     else:
-        raise Exception(f"Cannot find section {section_name} in README.md")
+        raise LookupError(f"Cannot find section {section_name} in README.md")

Review Comment:
   RuntimeError - this should never happen.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to