Skip to content

Commit 206839a

Browse files
committed
improve warning
1 parent 59a62c3 commit 206839a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pythonforandroid/recipe.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,12 +1281,11 @@ def get_pip_install_args(self, arch):
12811281
def lookup_prebuilt(self, arch):
12821282
pip_options = self.get_pip_install_args(arch)
12831283
# do not install
1284-
pip_options.extend(["--dry-run"])
1284+
pip_options.extend(["--dry-run", "-q"])
12851285
pip_env = self.get_hostrecipe_env()
12861286
try:
12871287
shprint(self._host_recipe.pip, *pip_options, _env=pip_env)
1288-
except Exception as e:
1289-
warning(f"Lookup fail result: {e}")
1288+
except Exception:
12901289
return False
12911290
return True
12921291

0 commit comments

Comments
 (0)