Revert "Don't use format strings, for compatability with Python 3.5 :("

This reverts commit 96c34c95f3.
This commit is contained in:
Adam Goldsmith 2019-11-07 13:25:27 -05:00
parent d867cacfef
commit df92332c69

View File

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