mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
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:
parent
2fd12a839c
commit
7219331057
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue