Fix misleading msg.

This commit is contained in:
limkokhole
2022-01-19 10:56:23 +08:00
parent 4942255a82
commit b63a00dd70

View File

@@ -972,7 +972,7 @@ def fetch_imgs(board, uname, board_name, section
section_folder = board['section']['title'] section_folder = board['section']['title']
else: else:
return quit('{}'.format('\n[' + x_tag + '] No item found.\n\ return quit('{}'.format('\n[' + x_tag + '] No item found.\n\
Please ensure your username/boardname or link has media item.\n') ) Please ensure your username/boardname/[section] or link has media item.\n') )
except (KeyError, TypeError): except (KeyError, TypeError):
url = '/'.join((uname, board_name)) url = '/'.join((uname, board_name))
cprint(''.join([ HIGHER_RED, '%s %s %s' % ('\n[' + x_tag + '] Failed. URL:', url, '\n\n') ]), attrs=BOLD_ONLY, end='' ) cprint(''.join([ HIGHER_RED, '%s %s %s' % ('\n[' + x_tag + '] Failed. URL:', url, '\n\n') ]), attrs=BOLD_ONLY, end='' )