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

--show-profile crashes #279

Closed
Deimos opened this issue Aug 30, 2018 · 2 comments
Closed

--show-profile crashes #279

Deimos opened this issue Aug 30, 2018 · 2 comments

Comments

@Deimos
Copy link

Deimos commented Aug 30, 2018

Trying to run prospector --show-profile crashes with an AttributeError:

Traceback (most recent call last):
  File "/opt/venvs/tildes/bin/prospector", line 11, in <module>
    load_entry_point('prospector==1.1.2', 'console_scripts', 'prospector')()
  File "/opt/venvs/tildes/lib/python3.6/site-packages/prospector/run.py", line 174, in main
    prospector.print_messages()
  File "/opt/venvs/tildes/lib/python3.6/site-packages/prospector/run.py", line 134, in print_messages
    self.write_to(formatter, sys.stdout)
  File "/opt/venvs/tildes/lib/python3.6/site-packages/prospector/run.py", line 144, in write_to
    profile=self.config.show_profile
  File "/opt/venvs/tildes/lib/python3.6/site-packages/prospector/formatters/text.py", line 106, in render
    output.append(self.render_profile())
  File "/opt/venvs/tildes/lib/python3.6/site-packages/prospector/formatters/text.py", line 96, in render_profile
    self.profile.as_yaml().strip()
  File "/opt/venvs/tildes/lib/python3.6/site-packages/prospector/profiles/profile.py", line 115, in as_yaml
    return yaml.safe_dump(self.as_dict())
  File "/opt/venvs/tildes/lib/python3.6/site-packages/prospector/profiles/profile.py", line 96, in as_dict
    'output-file': self.output_file,
AttributeError: 'ProspectorProfile' object has no attribute 'output_file'
@chocoelho
Copy link
Contributor

Will check that today

@chocoelho
Copy link
Contributor

Fixed in 1.1.3. Sorry for the delay, it's been crazy over here.

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

No branches or pull requests

2 participants