Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError when formatting a None object in TooManyTaskError message #11

Open
arteymix opened this issue Jan 25, 2023 · 0 comments
Open
Assignees
Labels
bug Something isn't working
Milestone

Comments

@arteymix
Copy link
Member

Traceback (most recent call last):
  File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/bioluigi/cli.py", line 151, in list
    tasks.update(rpc(scheduler_url, 'task_list', search=search, limit=limit))
  File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/bioluigi/cli.py", line 28, in rpc
    raise TooManyTasksError(response_data['num_tasks'])
bioluigi.cli.TooManyTasksError: <exception str() failed>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/bin/bioluigi", line 8, in <module>
    sys.exit(main())
  File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/bioluigi/cli.py", line 153, in list
    click.echo(e, err=True)
  File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/click/utils.py", line 258, in echo
    out: t.Optional[t.Union[str, bytes]] = str(message)
  File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/bioluigi/cli.py", line 19, in __str__
    return 'That request would return {} tasks; try filtering by status, glob query or set the --no-limit flag.'.format(format_number(self.num_tasks) if self.num_tasks else 'an unknown amount of')
  File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/babel/numbers.py", line 353, in format_number
    return format_decimal(number, locale=locale)
  File "/space/grp/poirigui/miniconda3/envs/rnaseq-pipeline/lib/python3.9/site-packages/babel/numbers.py", line 419, in format_decimal
    format = locale.decimal_formats.get(format)
AttributeError: 'NoneType' object has no attribute 'decimal_formats'
@arteymix arteymix added the bug Something isn't working label Jan 25, 2023
@arteymix arteymix added this to the 0.0.15 milestone Jan 25, 2023
@arteymix arteymix self-assigned this Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant