Skip to content

Commit

Permalink
fix bad formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuDartiailh committed Feb 5, 2024
1 parent 983456a commit e0d860e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyvisa_py/protocols/usbtmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ def __init__(
elif len(devices) > 1:
desc = "\n".join(str(dev) for dev in devices)
raise ValueError(
"{} devices found:\n{}\nPlease narrow the search"
" criteria".format(len(devices), desc)
f"{len(devices)} devices found:\n{desc}\nPlease narrow the search"
" criteria"
)

self.usb_dev = devices[0]
Expand Down

0 comments on commit e0d860e

Please sign in to comment.