From 36e4ed687b75c3afea0ac760d7fba716741a841f Mon Sep 17 00:00:00 2001 From: samerbam Date: Mon, 12 Jun 2023 15:45:09 -0400 Subject: [PATCH] fix else --- root/app/fanficdownload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/app/fanficdownload.py b/root/app/fanficdownload.py index 5ede703..ab69077 100644 --- a/root/app/fanficdownload.py +++ b/root/app/fanficdownload.py @@ -179,7 +179,7 @@ def downloader(args): cur = get_files(loc, '.epub', True)[0] if len(cur) > 0: cur = cur[0] - else len(cur) == 0: + elif (len(cur) == 0): raise Exception(f'Could not find .epub, work likely did not download. Exception raised on get_files(loc, ".epub", True)[0]. result from command is: {res}')