Skip to content

Commit db02223

Browse files
style: Fix TRY300 linting issue by moving return statement to else block
Co-Authored-By: Aaron <AJ> Steers <aj@airbyte.io>
1 parent 9485237 commit db02223

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

airbyte/_executors/python.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ def get_installed_version(
198198
if line.startswith("Version:"):
199199
version = line.split(":", 1)[1].strip()
200200
break
201-
return version
201+
if version is not None:
202+
return version
203+
return None
202204
except Exception:
203205
if raise_on_error:
204206
raise

0 commit comments

Comments
 (0)