dont thumb empty files

This commit is contained in:
ed 2022-07-05 23:45:47 +02:00
parent 622358b172
commit 1cb24045a0

View file

@ -128,5 +128,8 @@ class ThumbCli(object):
if abort:
return None
if not bos.path.getsize(os.path.join(ptop, rem)):
return None
x = self.broker.ask("thumbsrv.get", ptop, rem, mtime, fmt)
return x.get() # type: ignore