nvchecker/nvchecker_source/none.py

17 lines
428 B
Python
Raw Normal View History

2020-08-11 09:43:03 +00:00
# MIT licensed
# Copyright (c) 2020 lilydjwg <lilydjwg@gmail.com>, et al.
from __future__ import annotations
2020-08-14 12:04:05 +00:00
from nvchecker.api import (
BaseWorker, GetVersionError, RawResult,
)
2020-08-11 09:43:03 +00:00
class Worker(BaseWorker):
async def run(self) -> None:
2020-08-14 12:04:05 +00:00
exc = GetVersionError('no source specified')
2020-08-11 09:43:03 +00:00
async with self.acquire_token():
2020-08-14 12:04:05 +00:00
for name, conf in self.tasks:
self.result_q.put(
RawResult(name, exc, conf))