Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions buildozer/targets/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def _sdkmanager(self, *args, **kwargs):
host, port = os.environ.get(key).split(':')[-2:]
command.extend(['--proxy=http', f'--proxy_host={host.strip("/")}', f'--proxy_port={port}'])
break
except:
except Exception:
pass

if kwargs.pop('return_child', False):
Expand Down Expand Up @@ -288,7 +288,7 @@ def check_requirements(self):
if platform in ('win32', 'cygwin'):
try:
self._set_win32_java_home()
except:
except Exception:
traceback.print_exc()
self.adb_executable = join(self.android_sdk_dir, 'platform-tools',
'adb.exe')
Expand Down Expand Up @@ -535,7 +535,7 @@ def _read_version_subdir(self, *args):
for v in os.listdir(join(*args)):
try:
versions.append(parse(v))
except:
except Exception:
pass
if not versions:
self.logger.error(
Expand Down Expand Up @@ -1320,7 +1320,7 @@ def build_package(self):
self.buildozer.hook("android_pre_build_apk")
self.execute_build_package(build_cmd)
self.buildozer.hook("android_post_build_apk")
except:
except Exception:
# maybe the hook fail because the apk is not
pass

Expand Down Expand Up @@ -1416,7 +1416,7 @@ def _update_libraries_references(self, dist_dir):

try:
fd.writelines((line.decode('utf-8') for line in content))
except:
except Exception:
fd.writelines(content)
if content and not content[-1].endswith(u'\n'):
fd.write(u'\n')
Expand Down
Loading