Skip to content

Commit

Permalink
trivial: Make pylint happy with older AppStream present
Browse files Browse the repository at this point in the history
  • Loading branch information
ximion committed Oct 25, 2024
1 parent 03140b4 commit 55d2e7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/laniakea/archive/appstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ def import_appstream_data(
mdata_read.clear_components()
try:
try:
mdata_read.parse_data(yaml_catalog_data, AppStream.FormatKind.YAML)
mdata_read.parse_data(yaml_catalog_data, AppStream.FormatKind.YAML) # pylint: disable=no-member
except TypeError:
mdata_read.parse_data(yaml_catalog_data, -1, AppStream.FormatKind.YAML)
mdata_read.parse_data(yaml_catalog_data, -1, AppStream.FormatKind.YAML) # pylint: disable=no-member
cpts = mdata_read.get_components().as_array()
except AttributeError:
# backwards compatibility with AppStream versions prior to 1.0
Expand Down

0 comments on commit 55d2e7c

Please sign in to comment.