diff --git a/hid/DoorController.py b/hid/DoorController.py index f03c7c4..fb34591 100644 --- a/hid/DoorController.py +++ b/hid/DoorController.py @@ -16,8 +16,7 @@ fieldnames = "CardNumber,CardFormat,PinRequired,PinCode,ExtendedAccess,ExpiryDat class RemoteError(Exception): def __init__(self, r): super().__init__( - "Door Updating Error: {} {}\n{}" - .format(r.status_code, r.reason, r.text)) + f"Door Updating Error: {r.status_code} {r.reason}\n{r.text}") class DoorController(): def __init__(self, ip, username, password, name="", access=""):