diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 045b89c5..98edecc6 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -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 diff --git a/scripts/strip_hints/a.py b/scripts/strip_hints/a.py index 0d699a36..146fe250 100644 --- a/scripts/strip_hints/a.py +++ b/scripts/strip_hints/a.py @@ -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)