diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 15c815da..1196f13e 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -2532,6 +2532,9 @@ class HttpCli(object): if thp: return self.tx_file(thp) + if th_fmt == "p": + raise Pebkac(404) + return self.tx_ico(rem) if not is_dir and (self.can_read or self.can_get): diff --git a/copyparty/th_cli.py b/copyparty/th_cli.py index 5496ad47..473d1855 100644 --- a/copyparty/th_cli.py +++ b/copyparty/th_cli.py @@ -30,6 +30,8 @@ class ThumbCli(object): try: c = hsrv.th_cfg + if not c: + raise Exception() except: c = {k: {} for k in ["thumbable", "pil", "vips", "ffi", "ffv", "ffa"]}