Fix unicode bug in DoUninstall reading

old-commit-hash: a649732568d3b8896943ce7b12e3070249d33ea0
This commit is contained in:
Willem Melching
2019-11-07 13:53:42 -08:00
parent 1789bc5126
commit 7473bd9905

View File

@@ -377,8 +377,8 @@ def manager_thread():
running_list = [" running %s %s" % (p, running[p]) for p in running]
cloudlog.debug('\n'.join(running_list))
# is this still needed?
if params.get("DoUninstall") == "1":
# Exit main loop when uninstall is needed
if params.get("DoUninstall", encoding='utf8') == "1":
break
def get_installed_apks():
@@ -555,7 +555,7 @@ def main():
finally:
cleanup_all_processes(None, None)
if params.get("DoUninstall") == "1":
if params.get("DoUninstall", encoding='utf8') == "1":
uninstall()
if __name__ == "__main__":