ashb commented on code in PR #68437:
URL: https://github.com/apache/airflow/pull/68437#discussion_r3403216280
##########
airflow-core/src/airflow/models/connection.py:
##########
@@ -200,6 +200,10 @@ def __init__(
if self.password:
mask_secret(self.password)
mask_secret(quote(self.password))
+ if self.port is not None and not 0 <= self.port <= 65535:
+ raise AirflowException(
Review Comment:
ValueError is the appropriate exception to raise here.
--
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]