Check if main requirement is None#1274
Merged
simonbray merged 1 commit intogalaxyproject:masterfrom Oct 4, 2022
Merged
Conversation
user currently sees:
```
/home/runner/work/tools-iuc/tools-iuc/tools/hansel/bio_hansel.xml could not be updated - the following error was raised: 'NoneType' object is not subscriptable
```
which is due to
```
Traceback (most recent call last):
File "/home/berntm/miniconda3/envs/python38/bin/planemo", line 8, in <module>
sys.exit(planemo())
File "/home/berntm/miniconda3/envs/python38/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/berntm/miniconda3/envs/python38/lib/python3.8/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/berntm/miniconda3/envs/python38/lib/python3.8/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/berntm/miniconda3/envs/python38/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/berntm/miniconda3/envs/python38/lib/python3.8/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/berntm/miniconda3/envs/python38/lib/python3.8/site-packages/click/decorators.py", line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/berntm/miniconda3/envs/python38/lib/python3.8/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/berntm/miniconda3/envs/python38/lib/python3.8/site-packages/planemo/cli.py", line 96, in handle_blended_options
return f(*args, **kwds)
File "/home/berntm/miniconda3/envs/python38/lib/python3.8/site-packages/planemo/commands/cmd_autoupdate.py", line 101, in cli
updated = autoupdate.autoupdate_tool(ctx, tool_path, modified_files=modified_files, **kwds)
File "/home/berntm/miniconda3/envs/python38/lib/python3.8/site-packages/planemo/autoupdate.py", line 210, in autoupdate_tool
tokens, xml_to_update, current_main_req, updated_main_req = create_token_dict(ctx, xml_files, main_req, **kwds)
File "/home/berntm/miniconda3/envs/python38/lib/python3.8/site-packages/planemo/autoupdate.py", line 141, in create_token_dict
updated_main_req = check_conda(main_req[0], ctx, **kwds)
```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
user currently sees:
The second is not really helpful. Its due to: