bugfixes;

* `--og` went 500 if thumbnails were disabled / not available
* strip_hints wasn't very helpful explaining why it crashed
This commit is contained in:
ed 2024-06-18 12:01:48 +02:00
parent 2fd12a839c
commit 7219331057
2 changed files with 9 additions and 1 deletions

View file

@ -4825,7 +4825,7 @@ class HttpCli(object):
break
if og_fn:
ext = og_fn.split(".")[-1].lower()
if ext in self.thumbcli.thumbable:
if self.thumbcli and ext in self.thumbcli.thumbable:
is_pic = (
ext in self.thumbcli.fmt_pil
or ext in self.thumbcli.fmt_vips

View file

@ -47,6 +47,14 @@ def uh(top):
def uh1(fp):
try:
uh2(fp)
except:
print("failed to process", fp)
raise
def uh2(fp):
pr(".")
cs = strip_file_to_string(fp, no_ast=True, to_empty=True)