Skip to content

Commit

Permalink
Oopsie, nth version. :)
Browse files Browse the repository at this point in the history
  • Loading branch information
DemonicSavage committed Nov 28, 2023
1 parent 9bb0b8a commit 27e1b29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/mikan/html_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ async def get_items(self) -> None:
current_num += 1

async def add_to_objs(self, item: int) -> None:
print(self.card_type.url)
print(item)
obj = await self.item_parser.create_item(await self.get(f"{self.card_type.url}{item}"))
self.objs[self.card_type.card_dir][str(item)] = obj
print(f"Getting item {item}.")
10 changes: 4 additions & 6 deletions src/mikan/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,10 @@ def main() -> None: # pragma: no cover
if sys.platform.startswith("win"):
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

# try:
# asyncio.run(run(args))
# except Exception as e:
# print(f"Error: {e}")

asyncio.run(run(args))
try:
asyncio.run(run(args))
except Exception as e:
print(f"Error: {e}")


if __name__ == "__main__": # pragma: no cover
Expand Down

0 comments on commit 27e1b29

Please sign in to comment.