From d3d6b346fe80f9dc22558bb84d5895a43f4ec86b Mon Sep 17 00:00:00 2001 From: samerbam Date: Mon, 12 Jun 2023 16:38:53 -0400 Subject: [PATCH] remove un-needed if --- 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 ab69077..0cddc32 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] - elif (len(cur) == 0): + else : 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}')