remove un-needed if

This commit is contained in:
samerbam 2023-06-12 16:38:53 -04:00
parent 36e4ed687b
commit d3d6b346fe

View File

@ -179,7 +179,7 @@ def downloader(args):
cur = get_files(loc, '.epub', True)[0] cur = get_files(loc, '.epub', True)[0]
if len(cur) > 0: if len(cur) > 0:
cur = 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}') 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}')