maven, sourceforge: Fix mypy errors

This commit is contained in:
Antoine Lambert 2025-02-14 13:32:26 +01:00
parent edef3b850c
commit 4b3a12fe76
No known key found for this signature in database
GPG key ID: D026E5C2F802586D
2 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@ from typing import Any, Dict, Iterator, Optional
from urllib.parse import urljoin
from bs4 import BeautifulSoup
import lxml
from lxml import etree
import requests
from swh.scheduler.interface import SchedulerInterface
@ -247,7 +247,7 @@ class MavenLister(Lister[MavenListerState, RepoPage]):
"POM info page could not be fetched, skipping project '%s'",
pom_url,
)
except lxml.etree.Error as error:
except etree.Error as error:
logger.info("Could not parse POM %s XML: %s.", pom_url, error)
def get_scm(self, page: RepoPage) -> Optional[ListedOrigin]: