diff --git a/src/ReVancedBuilder/ReVancedBuilder.py b/src/ReVancedBuilder/ReVancedBuilder.py index 4cec141..95515af 100755 --- a/src/ReVancedBuilder/ReVancedBuilder.py +++ b/src/ReVancedBuilder/ReVancedBuilder.py @@ -24,7 +24,7 @@ def update_tools(appstate): for item in ['revanced-cli', 'revanced-integrations', 'revanced-patches']: print(f"Checking updates for {item}...") tools = appstate['tools'] - tool = filter(lambda x: x['repository'] == 'revanced/'+item and x['content_type'] not in ['application/pgp-keys', 'application/json'], tools) + tool = next(filter(lambda x: x['repository'] == 'revanced/'+item and x['content_type'] not in ['application/pgp-keys', 'application/json'], tools)) latest_ver = Version(tool['version']) try: