passing '' to int() throws an error
This commit is contained in:
parent
4bd9f122c3
commit
c791f3bf08
|
@ -78,7 +78,7 @@ async def block_skylinks_from_airtable():
|
||||||
+ "|".join(skylinks)
|
+ "|".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:
|
if cached_files_count == 0:
|
||||||
return print("No nginx cached files matching blocked skylinks were found")
|
return print("No nginx cached files matching blocked skylinks were found")
|
||||||
|
|
Reference in New Issue