diff -r 0b936ff1bbb9 -r a2bc06a54d9d src/eric7/WebBrowser/VirusTotal/VirusTotalApi.py --- a/src/eric7/WebBrowser/VirusTotal/VirusTotalApi.py Sun Nov 06 11:22:39 2022 +0100 +++ b/src/eric7/WebBrowser/VirusTotal/VirusTotalApi.py Mon Nov 07 17:19:58 2022 +0100 @@ -299,6 +299,8 @@ @param reply reference to the network reply @type QNetworkReply """ + from .VirusTotalIpReportDialog import VirusTotalIpReportDialog + if reply.error() == QNetworkReply.NetworkError.NoError: result = json.loads(str(reply.readAll(), "utf-8")) if result["response_code"] == 0: @@ -324,8 +326,6 @@ except KeyError: urls = [] - from .VirusTotalIpReportDialog import VirusTotalIpReportDialog - self.__ipReportDlg = VirusTotalIpReportDialog( self.__lastIP, owner, resolutions, urls ) @@ -364,6 +364,8 @@ @param reply reference to the network reply @type QNetworkReply """ + from .VirusTotalDomainReportDialog import VirusTotalDomainReportDialog + if reply.error() == QNetworkReply.NetworkError.NoError: result = json.loads(str(reply.readAll(), "utf-8")) if result["response_code"] == 0: @@ -422,8 +424,6 @@ with contextlib.suppress(KeyError): webutationData["verdict"] = webutation["Verdict"] - from .VirusTotalDomainReportDialog import VirusTotalDomainReportDialog - self.__domainReportDlg = VirusTotalDomainReportDialog( self.__lastDomain, resolutions,