o-nikolas commented on code in PR #38789:
URL: https://github.com/apache/airflow/pull/38789#discussion_r1554395424


##########
airflow/providers/amazon/aws/operators/emr.py:
##########
@@ -576,7 +576,7 @@ def __init__(
                 stacklevel=2,
             )
             if max_polling_attempts and max_polling_attempts != max_tries:
-                raise Exception("max_polling_attempts must be the same value 
as max_tries")
+                raise RuntimeError("max_polling_attempts must be the same 
value as max_tries")

Review Comment:
   Maybe `ValueError` since we're validating the value of these arguments?



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