Skip to content

Commit

Permalink
Fix pre-commit errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vvolam committed Oct 24, 2024
1 parent ba4755c commit 7792b3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/reboot_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ def reboot_module(module_name):
except NotImplementedError:
log_err("Reboot not implemented for module {module_name}.")
return False
except Exception as e:
except Exception as e: # noqa: F841
log_err("An error occurred while rebooting module {module_name}: {e}")
return False

# If the module with the given name is not found
log_err("Module {module_name} not found")
return False

except Exception as e:
except Exception as e: # noqa: F841
log_err("Error occurred while rebooting module {module_name}: {repr(e)}")
return False

Expand Down

0 comments on commit 7792b3e

Please sign in to comment.