Skip to content

Typo - return values wrong way around

g0t mi1k requested to merge typo into main

try/except has the values one way, however then return at the end of the function was the other way.

The code calling the function was expecting the last return value.

Requesting https://mirror.termux.dev/?mirrorstats ...
URLError: <urlopen error [Errno 111] Connection refused>
Mirrorbits version: unknown
Traceback (most recent call last):
  File "/mnt/mirrorbits-scripts/instances-in-the-wild/./run.py", line 278, in <module>
    result = process_instance(inst, data)
  File "/mnt/mirrorbits-scripts/instances-in-the-wild/./run.py", line 156, in process_instance
    print(f"Number of mirrors : {len(mirrors) or 'unknown'}")
TypeError: object of type 'NoneType' has no len()

Merge request reports