Skip to content

Commit 0a42859

Browse files
style: Fix RET504 and TRY300 linting issues
Co-Authored-By: Aaron <AJ> Steers <aj@airbyte.io>
1 parent 93bd929 commit 0a42859

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

airbyte/_executors/python.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ def get_installed_version(
196196
version = None
197197
for line in output.splitlines():
198198
if line.startswith("Version:"):
199-
version = line.split(":", 1)[1].strip()
200-
return version
201-
return None
199+
return line.split(":", 1)[1].strip()
200+
else:
201+
return None
202202
except Exception:
203203
if raise_on_error:
204204
raise

0 commit comments

Comments
 (0)