Skip to content

Commit

Permalink
power/usbrelay: print name of the line that cannot be found
Browse files Browse the repository at this point in the history
Signed-off-by: Cedric Hombourger <cedric.hombourger@siemens.com>
  • Loading branch information
chombourger committed Feb 7, 2022
1 parent f117f7a commit 8f2bb0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mtda/power/usbrelay.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def probe(self):
statuses = self._get_lines()
for line in self.lines:
if line not in statuses:
raise ValueError("usbrelay: {0} not detected!")
raise ValueError("usbrelay: {0} not detected!".format(line))

def command(self, args):
return False
Expand Down

0 comments on commit 8f2bb0a

Please sign in to comment.