|
13 | 13 | from tibiapy.character import Character |
14 | 14 | from tibiapy.creature import BoostedCreature |
15 | 15 | from tibiapy.enums import Category, HouseOrder, HouseStatus, HouseType, NewsCategory, NewsType, VocationFilter |
16 | | -from tibiapy.errors import Forbidden, NetworkError, SiteMaintenance |
| 16 | +from tibiapy.errors import Forbidden, NetworkError, SiteMaintenanceError |
17 | 17 | from tibiapy.event import EventSchedule |
18 | 18 | from tibiapy.forum import CMPostArchive, ForumAnnouncement, ForumBoard, ForumPost, ForumThread, ListedBoard |
19 | 19 | from tibiapy.guild import Guild, GuildWars, ListedGuild |
@@ -185,7 +185,7 @@ async def _request(self, method, url, data=None, headers=None): |
185 | 185 | async with self.session.request(method, url, data=data, headers=headers) as resp: |
186 | 186 | log.info(f"{url} | {method} | {resp.status} {resp.reason}") |
187 | 187 | if "maintenance.tibia.com" in str(resp.url): |
188 | | - raise SiteMaintenance("Tibia.com is down for maintenance.") |
| 188 | + raise SiteMaintenanceError("Tibia.com is down for maintenance.") |
189 | 189 | self._handle_status(resp.status) |
190 | 190 | response = RawResponse(resp, time.perf_counter()-init_time) |
191 | 191 | response.content = await resp.text() |
|
0 commit comments