Skip to content

Commit

Permalink
Fix AttributeError with storage products
Browse files Browse the repository at this point in the history
  • Loading branch information
thefakequake committed Dec 28, 2024
1 parent faed93f commit dcef233
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pypartpicker/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def parse_part(self, res: Response) -> Part:

# Specs
specs = {}
for spec in sidebar.find(".group--spec"):
specs_block = sidebar.find(".specs", first=True)
for spec in specs_block.find(".group--spec"):
spec_title = spec.find(".group__title", first=True).text
spec_value = spec.find(".group__content", first=True).text
specs[spec_title] = spec_value
Expand Down

0 comments on commit dcef233

Please sign in to comment.