From: Oleg Broytman Date: Tue, 10 Sep 2024 16:00:54 +0000 (+0300) Subject: Feat(Robots): Signal `get_url` is not implemented for forking robots X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=2d62974e415da24c477131ea725ddea53d391de7;p=bookmarks_db.git Feat(Robots): Signal `get_url` is not implemented for forking robots --- diff --git a/Robots/concurrent_futures.py b/Robots/concurrent_futures.py index aa46019..b6ab0fb 100644 --- a/Robots/concurrent_futures.py +++ b/Robots/concurrent_futures.py @@ -84,3 +84,7 @@ class cf_multiprocess(concurrent_futures): def __init__(self, *args, **kw): self.concurrent_class = concurrent.futures.ProcessPoolExecutor concurrent_futures.__init__(self, *args, **kw) + + async def get_url(self, url, req_headers): + raise NotImplementedError( + 'This robot does not implement get_url; use non-forking robots.')