Less indentation

main
Bob Mottram 2022-08-19 17:00:33 +01:00
parent 04e64c7ef7
commit ced75a7b3d
1 changed files with 22 additions and 21 deletions

View File

@ -201,7 +201,8 @@ def cache_svg_images(session, base_dir: str, http_prefix: str,
image_data = fp_svg.read()
except OSError:
print('EX: unable to read svg file data')
if image_data:
if not image_data:
continue
image_data = image_data.decode()
cleaned_up = \
remove_script(image_data, log_filename, actor, url)