[PR #129] [CLOSED] Import getpass in try-except block #168

Closed
opened 2026-05-05 03:27:07 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/XuehaiPan/nvitop/pull/129
Author: @landgraf
Created: 7/10/2024
Status: Closed

Base: mainHead: import


📝 Commits (1)

  • d950faf Import getpass in try-except block

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 nvitop/select.py (+1 -1)

📄 Description

this fixes crash on system without getpass installed

Issue Type

  • Bug fix

Runtime Environment

Yocto based linux os image

Description

Move import under try-except to not fail if getpass is not installed

Motivation and Context

Testing

ran nvitop with and without the changes

Images / Videos


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/XuehaiPan/nvitop/pull/129 **Author:** [@landgraf](https://github.com/landgraf) **Created:** 7/10/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `import` --- ### 📝 Commits (1) - [`d950faf`](https://github.com/XuehaiPan/nvitop/commit/d950faf04113e0c096d9e820a7ebcce501452bc3) Import getpass in try-except block ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `nvitop/select.py` (+1 -1) </details> ### 📄 Description this fixes crash on system without getpass installed <!-- Provide a descriptive summary of the changes in the title above --> #### Issue Type <!-- Pick relevant types and delete the rest --> - Bug fix #### Runtime Environment <!-- Details of your runtime environment --> Yocto based linux os image #### Description Move import under try-except to not fail if getpass is not installed #### Motivation and Context #### Testing ran nvitop with and without the changes #### Images / Videos <!-- Only if relevant --> <!-- Link or embed images and videos of screenshots, sketches etc. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 03:27:07 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/nvitop#168
No description provided.