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

This commit is contained in:
Adam Goldsmith 2018-10-18 20:24:28 -04:00
parent 067555376b
commit 96c34c95f3

View File

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