From c791f3bf080bbfec97dc9d933f19b5c24093dc0c Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 2 Mar 2021 16:44:56 +0100 Subject: [PATCH] passing '' to int() throws an error --- setup-scripts/blocklist-airtable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-scripts/blocklist-airtable.py b/setup-scripts/blocklist-airtable.py index 7f5d4dd7..64dbb9ac 100755 --- a/setup-scripts/blocklist-airtable.py +++ b/setup-scripts/blocklist-airtable.py @@ -78,7 +78,7 @@ async def block_skylinks_from_airtable(): + "|".join(skylinks) + ")'" ) - cached_files_count = int(exec('docker exec -it nginx bash -c "' + cached_files_command + ' | wc -l"')) + cached_files_count = int(exec('docker exec -it nginx bash -c "' + cached_files_command + ' | wc -l"') or 0) if cached_files_count == 0: return print("No nginx cached files matching blocked skylinks were found")