Skip to content

Commit

Permalink
Fixed ruff issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cjshrader committed Aug 27, 2024
1 parent 7111661 commit 3dc7353
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gui/importer/d4builds.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def import_d4builds(url: str, driver: ChromiumDriver = None):
unique_model.aspect = AspectUniqueFilterModel(name=unique_name)
unique_model.affix = [AffixFilterModel(name=x.name) for x in affixes]
unique_filters.append(unique_model)
except:
except Exception:
LOGGER.exception(f"Unexpected error importing unique {unique_name}, please report a bug.")
continue

Expand Down
2 changes: 1 addition & 1 deletion src/gui/importer/maxroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def import_maxroll(url: str):
for x in _find_item_affixes(mapping_data=mapping_data, item_affixes=resolved_item["explicits"])
]
unique_filters.append(unique_model)
except:
except Exception:
LOGGER.exception(f"Unexpected error importing unique {unique_name}, please report a bug.")
continue
if (item_type := _find_item_type(mapping_data=mapping_data["items"], value=resolved_item["id"])) is None:
Expand Down
2 changes: 1 addition & 1 deletion src/gui/importer/mobalytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def import_mobalytics(url: str):
if affixes:
unique_model.affix = [AffixFilterModel(name=x.name) for x in affixes]
unique_filters.append(unique_model)
except:
except Exception:
LOGGER.exception(f"Unexpected error importing unique {unique_name}, please report a bug.")
continue

Expand Down

0 comments on commit 3dc7353

Please sign in to comment.