mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-07-05 11:49:40 +00:00
fix: return which(cmd) instead of the original cmd
This commit is contained in:
@@ -53,7 +53,7 @@ class ModuleStatus:
|
||||
"""
|
||||
if platform.system() == "Darwin":
|
||||
for loc in _MACOS_BIN_LOCATIONS:
|
||||
if which(loc + cmd):
|
||||
cmd = loc + cmd
|
||||
break
|
||||
return cmd
|
||||
full_command = which(loc + cmd)
|
||||
if full_command:
|
||||
return full_command
|
||||
return which(cmd)
|
||||
|
||||
@@ -11,7 +11,7 @@ def test_github_api_unavailable(qtbot: QtBot, mocker) -> None:
|
||||
mocker.patch(
|
||||
"requests.get",
|
||||
side_effect=ConnectionError(
|
||||
"Failed to resolve 'api.github.com' ([Errno -3] Temporary failure in name resolution)"
|
||||
"Emulating a failure with 'api.github.com' ([Errno 0] This should be handled)"
|
||||
),
|
||||
)
|
||||
modal = AboutModal("/tmp")
|
||||
|
||||
Reference in New Issue
Block a user