Skip to content

Fix passing arguments#7

Open
Neui wants to merge 1 commit into
gjgfuj:slowrelease_newfrom
Neui:slowrelease-fix-args-passing
Open

Fix passing arguments#7
Neui wants to merge 1 commit into
gjgfuj:slowrelease_newfrom
Neui:slowrelease-fix-args-passing

Conversation

@Neui

@Neui Neui commented Feb 8, 2026

Copy link
Copy Markdown

args is already a tuple and launch() expects each argument to be a CLI argument, so extract args so it parses correctly.

What is this fixing or adding?

Fixes:

Traceback (most recent call last):
  File "__startup__.py", line 133, in run
  File "console.py", line 25, in run
  File "Launcher.py", line 511, in <module>
  File "Launcher.py", line 490, in main
  File "Launcher.py", line 451, in run_component
  File "/Archipelago/custom_worlds/slowrelease.apworld/slowrelease/__init__.py", line 8, in launch_client
  File "/Archipelago/custom_worlds/slowrelease.apworld/slowrelease/Client.py", line 140, in launch
  File "urllib/parse.py", line 394, in urlparse
  File "urllib/parse.py", line 133, in _coerce_args
  File "urllib/parse.py", line 117, in _decode_args
  File "urllib/parse.py", line 117, in <genexpr>
AttributeError: 'tuple' object has no attribute 'decode'

Where args == (('--nogui',),) (when passed to parsed_args), but this commit changes it to args == ('--nogui',).

How was this tested?

Running ./ArchipelagoLauncher "Slow Release Client" -- --nogui

If this makes graphical changes, please attach screenshots.

Not applicable.

`args` is already a tuple and `launch()` expects each argument to be a
CLI argument, so extract args so it parses correctly.

Fixes:

Traceback (most recent call last):
  File "__startup__.py", line 133, in run
  File "console.py", line 25, in run
  File "Launcher.py", line 511, in <module>
  File "Launcher.py", line 490, in main
  File "Launcher.py", line 451, in run_component
  File "/Archipelago/custom_worlds/slowrelease.apworld/slowrelease/__init__.py", line 8, in launch_client
  File "/Archipelago/custom_worlds/slowrelease.apworld/slowrelease/Client.py", line 140, in launch
  File "urllib/parse.py", line 394, in urlparse
  File "urllib/parse.py", line 133, in _coerce_args
  File "urllib/parse.py", line 117, in _decode_args
  File "urllib/parse.py", line 117, in <genexpr>
AttributeError: 'tuple' object has no attribute 'decode'

Where `args == (('--nogui',),)` (when passed to `parsed_args`),
but this commit changes it to `args == ('--nogui',)`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant