Skip to content

Commit

Permalink
Removed panic if local gpu db is not able to be read (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
coolGi69 committed Jun 18, 2024
1 parent 040e9d3 commit 0be8883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ impl GeneralReadout for LinuxGeneralReadout {
fn gpus(&self) -> Result<Vec<String>, ReadoutError> {
let db = match Database::read() {
Ok(db) => db,
_ => panic!("Could not read pci.ids file"),
_ => return Err(ReadoutError::MetricNotAvailable),
};

let devices = get_pci_devices()?;
Expand Down

0 comments on commit 0be8883

Please sign in to comment.