diff --git a/platformio/commands/lib.py b/platformio/commands/lib.py index d75d7869..0444b088 100644 --- a/platformio/commands/lib.py +++ b/platformio/commands/lib.py @@ -95,7 +95,8 @@ def lib_search(query, **filters): for item in result['items']: echo_liblist_item(item) - if int(result['page']) * int(result['perpage']) >= int(result['total']): + if (int(result['page']) * int(result['perpage']) >= + int(result['total'])): break if (app.get_setting("enable_prompts") and