Программа не работает без установленного Minecraft #2

Closed
opened 2023-07-21 18:15:01 +03:00 by rndtrash · 1 comment
Owner

Не могу получить даже справку.

PS C:\bin\mc-get> python .\mc-get.py --help
Traceback (most recent call last):
  File "C:\bin\mc-get\mc-get.py", line 170, in <module>
    version_to_use = __select_version(mcfs.get_installed_mc_versions())
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\bin\mc-get\mc-get.py", line 148, in __select_version
    if len(versions) > 0:
       ^^^^^^^^^^^^^
TypeError: object of type 'NoneType' has no len()
PS C:\bin\mc-get> python .\mc-get.py
Traceback (most recent call last):
  File "C:\bin\mc-get\mc-get.py", line 170, in <module>
    version_to_use = __select_version(mcfs.get_installed_mc_versions())
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\bin\mc-get\mc-get.py", line 148, in __select_version
    if len(versions) > 0:
       ^^^^^^^^^^^^^
TypeError: object of type 'NoneType' has no len()
Не могу получить даже справку. ``` PS C:\bin\mc-get> python .\mc-get.py --help Traceback (most recent call last): File "C:\bin\mc-get\mc-get.py", line 170, in <module> version_to_use = __select_version(mcfs.get_installed_mc_versions()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\bin\mc-get\mc-get.py", line 148, in __select_version if len(versions) > 0: ^^^^^^^^^^^^^ TypeError: object of type 'NoneType' has no len() PS C:\bin\mc-get> python .\mc-get.py Traceback (most recent call last): File "C:\bin\mc-get\mc-get.py", line 170, in <module> version_to_use = __select_version(mcfs.get_installed_mc_versions()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\bin\mc-get\mc-get.py", line 148, in __select_version if len(versions) > 0: ^^^^^^^^^^^^^ TypeError: object of type 'NoneType' has no len() ```
Frundle referenced this issue from a commit 2023-07-23 23:33:10 +03:00
Owner

Исправлено в 3c435c82de

Исправлено в 3c435c82decdec1b1693c0122f1ce81eb43eaa2e
Frundle added the
bug
label 2023-07-23 23:35:02 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TeaSanctuary/mc-get#2
No description provided.