Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
[*] Bump to unidown 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
IceflowRE committed Dec 18, 2023
1 parent 6a947d5 commit 2a8bec8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
packages=find_packages(include=['unidown_mr_de', 'unidown_mr_de.*']),
python_requires='>=3.8',
install_requires=[
'unidown==2.0.3',
'urllib3[secure]>=1.26.7',
'unidown==2.1.0',
'urllib3>=1.26.7',
'tqdm>=4.62.3',
'beautifulsoup4>=4.10.0',
'lxml>=4.7.1',
Expand Down
4 changes: 2 additions & 2 deletions unidown_mr_de/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"""
from pathlib import Path

from unidown.plugin.exceptions import PluginException
from unidown.plugin.exceptions import PluginError


class GetEbookLinksError(PluginException):
class GetEbookLinksError(PluginError):
"""
Something wents wrong while parsing an thread.
Has default values due to python bug: https://bugs.python.org/issue37208
Expand Down
2 changes: 1 addition & 1 deletion unidown_mr_de/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#: Long name of this program
LONG_NAME = "unidown-mr_de"
#: Version in PEP440 format
VERSION = '1.0.3'
VERSION = '1.1.0'
#: Author
AUTHOR = 'Iceflower S'
#: Author github link
Expand Down
6 changes: 3 additions & 3 deletions unidown_mr_de/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from tqdm import tqdm
from unidown import tools
from unidown.core.settings import Settings
from unidown.plugin import APlugin, PluginInfo, LinkItemDict, LinkItem, PluginException
from unidown.plugin import APlugin, PluginInfo, LinkItemDict, LinkItem, PluginError
from urllib3.exceptions import HTTPError

from unidown_mr_de import meta
Expand Down Expand Up @@ -63,9 +63,9 @@ def _create_download_data(self) -> LinkItemDict:
self._download_listings(pages_dict)
listing_success, listing_failed = self.check_download(pages_dict, self.listing_dir)
if len(listing_failed) != 0:
raise PluginException("No all listing threads were downloaded.")
raise PluginError("No all listing threads were downloaded.")
if not self.wiki_list_file.exists():
raise PluginException("Failed to download the wiki list.")
raise PluginError("Failed to download the wiki list.")

# extract links from the listing threads to get the links to the other
thread_list, attach_list = self._extract_listing(listing_success)
Expand Down

0 comments on commit 2a8bec8

Please sign in to comment.