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


##########
scripts/ci/pre_commit/pre_commit_json_schema.py:
##########
@@ -30,7 +30,7 @@
 from jsonschema.validators import extend, validator_for
 
 if __name__ != "__main__":
-    raise Exception(
+    raise RuntimeError(

Review Comment:
   I kind of wonder if all these blocks with the `if __name__ != "__main__"` 
pattern should just `sys.exit`, but that’s probably a separate discussion. This 
is OK.



-- 
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