diff --git a/manuf/manuf.py b/manuf/manuf.py index 0dd4098..4d7a03e 100755 --- a/manuf/manuf.py +++ b/manuf/manuf.py @@ -146,7 +146,7 @@ def update(self, manuf_url=None, wfa_url=None, manuf_name=None, refresh=True): raise URLError("Failed downloading OUI database") # Parse the response - if response.code is 200: + if response.code == 200: with open(manuf_name, "wb") as write_file: write_file.write(response.read()) if refresh: @@ -166,7 +166,7 @@ def update(self, manuf_url=None, wfa_url=None, manuf_name=None, refresh=True): raise URLError("Failed downloading WFA database") # Parse the response - if response.code is 200: + if response.code == 200: with open(manuf_name, "ab") as write_file: write_file.write(response.read()) if refresh: