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


##########
airflow/operators/python.py:
##########
@@ -555,6 +555,13 @@ def __init__(
                 "major versions for PythonVirtualenvOperator. Please use 
string_args."
                 f"Sys version: {sys.version_info}. Venv version: 
{python_version}"
             )
+        if not (isinstance(python_version, str) or python_version is None):

Review Comment:
   ```suggestion
           if python_version is not None and not isinstance(python_version, 
str):
   ```



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