Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Make psutil optional#992

Merged
erikjohnston merged 1 commit into
developfrom
erikj/psutil_conditional
Aug 8, 2016
Merged

Make psutil optional#992
erikjohnston merged 1 commit into
developfrom
erikj/psutil_conditional

Conversation

@erikjohnston
Copy link
Copy Markdown
Member

No description provided.

"psutil is not installed or incorrect version."
" Disabling memory metrics."
)
return
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe move the rest of the function inside the try block rather than returning here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to keep try...except as narrow as possible, to ensure we don't accidentally consume legitimate errors.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough

@NegativeMjark
Copy link
Copy Markdown
Contributor

LGTM

@erikjohnston erikjohnston merged commit e7674eb into develop Aug 8, 2016
@richvdh richvdh deleted the erikj/psutil_conditional branch December 1, 2016 14:09
@richvdh
Copy link
Copy Markdown
Member

richvdh commented Oct 19, 2018

why was this necessary? It is undone by #4027.

richvdh added a commit that referenced this pull request Oct 19, 2018
As of #4027, we require psutil to be installed, so it should be in our
dependency list. We can also remove some of the conditional import code
introduced by #992.

Fixes #4062.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants