🐛 fix(_lib): re error has been fixed

This commit is contained in:
Eshan Roy
2024-12-03 11:35:21 +05:30
parent d6b56ab69d
commit a2630377e6

View File

@@ -219,7 +219,7 @@ def getOfficialKernels(self):
waitForResponse(ResponseQueue) waitForResponse(ResponseQueue)
session.close() session.close()
for kernel in ResponseContent: for kernel in ResponseContent:
parse_archive_html(ResponseContent[kernel], kernel) parseArchiveHtml(ResponseContent[kernel], kernel)
if len(FetchedKernelsDict) > 0: if len(FetchedKernelsDict) > 0:
writeCache() writeCache()
readCache(self) readCache(self)
@@ -245,6 +245,7 @@ def waitForResponse(ResponseQueue):
if len(SupportedKernelDict) == len(items): if len(SupportedKernelDict) == len(items):
break break
import re
def parseArchiveHtml(response, LinuxKernel): def parseArchiveHtml(response, LinuxKernel):
for line in response.splitlines(): for line in response.splitlines():
if "<a href=" in line.strip(): if "<a href=" in line.strip():