# MIT licensed # Copyright (c) 2020 lilydjwg , et al. from __future__ import annotations from nvchecker.api import ( BaseWorker, GetVersionError, RawResult, ) class Worker(BaseWorker): async def run(self) -> None: exc = GetVersionError('no source specified') async with self.acquire_token(): for name, conf in self.tasks: self.result_q.put( RawResult(name, exc, conf))