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

nargs errors for logging_.print_* functions #580

Closed
j0yu opened this issue Feb 28, 2019 · 0 comments · Fixed by #581
Closed

nargs errors for logging_.print_* functions #580

j0yu opened this issue Feb 28, 2019 · 0 comments · Fixed by #581

Comments

@j0yu
Copy link
Contributor

j0yu commented Feb 28, 2019

rez 2.27.0

I've been running into exceptions with the print functions in logging that various bits or rez calls.

For example, in commands(), if stop('Hello world') is called, the print_error falls over:

Traceback (most recent call last):
  File "/packages/rez/2.27.0/platform-linux/python-2.7/bin/rez/rez", line 4, in <module>
    run()
  File "/packages/rez/2.27.0/platform-linux/python-2.7/lib/python2.7/site-packages/rez-2.27.0-py2.7.egg/rez/cli/_main.py", line 148, in run
    print_error("%s: %s" % (e.__class__.__name__, str(e)))
  File "/packages/rez/2.27.0/platform-linux/python-2.7/lib/python2.7/site-packages/rez-2.27.0-py2.7.egg/rez/utils/logging_.py", line 22, in print_error
    logger.error(msg % nargs)
TypeError: not enough arguments for format string
@j0yu j0yu changed the title [Fix Fix nargs for logging_.print_* functions Feb 28, 2019
@j0yu j0yu changed the title Fix nargs for logging_.print_* functions nargs errors for logging_.print_* functions Feb 28, 2019
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 a pull request may close this issue.

1 participant