funilrys / PyFunceble

The tool to check the availability or syntax of domain, IP or URL.
https://pyfunceble.github.io
Apache License 2.0
297 stars 44 forks source link

BUG: _switch_down_by_history variations.remove(self.status.netloc) #326

Closed spirillen closed 1 year ago

spirillen commented 1 year ago

Description

www.sexshowbiz.com                                                                                   ACTIVE      DNSLOOKUP  Unknown           Unknown                        301        AVAILABILITY
Process pyfunceble_tester_worker_13:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/cli/processes/workers/base.py", line 395, in run
raise exception
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/cli/processes/workers/base.py", line 373, in run
result = self.target(consumed)
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/cli/processes/workers/tester.py", line 292, in target
.query_status()
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/checker/base.py", line 161, in wrapper
return func(self, *args, **kwargs)  # pylint: disable=not-callable
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/checker/base.py", line 186, in wrapper
result = func(self, *args, **kwargs)  # pylint: disable=not-callable
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/checker/availability/domain_and_ip.py", line 109, in query_status
result = query_object.query_status()
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/checker/base.py", line 161, in wrapper
return func(self, *args, **kwargs)  # pylint: disable=not-callable
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/checker/base.py", line 186, in wrapper
result = func(self, *args, **kwargs)  # pylint: disable=not-callable
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/checker/availability/domain.py", line 181, in query_status
self.try_to_query_status_from_extra_rules()
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/checker/availability/base.py", line 1048, in try_to_query_status_from_extra_rules
rule_handler.set_status(self.status).start()
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/checker/availability/extras/base.py", line 104, in wrapper
return func(self, *args, **kwargs)  # pylint: disable=not-callable
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/checker/availability/extras/base.py", line 123, in wrapper
return func(self, *args, **kwargs)  # pylint: disable=not-callable
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/checker/availability/extras/base.py", line 139, in wrapper
result = func(self, *args, **kwargs)  # pylint: disable=not-callable
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/checker/availability/extras/subject_switch.py", line 144, in start
self._switch_down_by_history()
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/checker/availability/extras/subject_switch.py", line 92, in _switch_down_by_history
variations.remove(self.status.netloc)
KeyError: 'www.sexshopcampinas.com.br'
www.sexslavesvr.com                                                                                  ACTIVE      DNSLOOKUP  Unknown           Unknown                        200        AVAILABILITY
Fatal Error: 'www.elissexshop.com.br'
Traceback (most recent call last):
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/cli/system/launcher.py", line 990, in start
self.stop_and_wait_for_all_manager()
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/cli/system/launcher.py", line 927, in stop_and_wait_for_all_manager
self.tester_process_manager.wait()
File "/$USER/.local/lib/python3.10/site-packages/PyFunceble/cli/processes/base.py", line 330, in wait
raise worker_error
KeyError: 'www.elissexshop.com.br'

Configuration

Usual from https://mypdns.org/clefspeare13/pornhosts

Reproduction

:arrow_double_up:

Expected behavior

:thinking:

Screenshots

Not needed as full error log is attached

Versions

OS: Ubuntu 22.04

Python Version: 3.10

PyFunceble Version: pyfunceble 4.2.0a2.dev (Blue Duckling: Ixora)

Additional context