message: Update discovery.py
  fixd
diff: @@ -71,16 +71,12 @@ def find_all(path, serial_number,
  temp_dir = tempfile.gettempdir()
  cache_miss = True
  - json_crc16 = 0
  # Fetching the json crc to check cache
  try:
  json_crc16 = channel.remote_endpoint_operation(0, struct.pack("<I", 0xffffffff), True, 2)
  json_crc16 = struct.unpack("<H", json_crc16)[0]
  logger.debug("Device JSON checksum: 0x{:02X} 0x{:02X}".format(json_crc16 & 0xff, (json_crc16 >> 8) & 0xff))
  - except Exception as error:
  - logger.debug("Error fetching JSON CRC, falling back to downloading full JSON")
  - #logger.debug(traceback.format_exc())
  cache_path = temp_dir + '/fibre_schema_cache_' + str(json_crc16)
  @@ -88,12 +84,13 @@ def find_all(path, serial_number,
  json_cache = open(cache_path, 'r+')
  logger.debug("Found cache file with crc")
  cache_miss = False
  +
  except:
  logger.debug("Cache miss, there is no cache file")
  cache_miss = True
  - if (cache_miss):
  # Download the JSON data
  + if(cache_miss == True):
  try:
  logger.debug("Getting json schema from USB... this is slow...")
  json_bytes = channel.remote_endpoint_read_buffer(0)
  @@ -113,6 +110,10 @@ def find_all(path, serial_number,
  logger.debug("could not read cache file")
  return
  + except Exception as error:
  + logger.debug("Error fetching JSON CRC, falling back to downloading full JSON")
  + logger.debug("Getting json schema from USB... this is slow...")
  + json_bytes = channel.remote_endpoint_read_buffer(0)
  json_crc16 = fibre.protocol.calc_crc16(fibre.protocol.PROTOCOL_VERSION, json_bytes)
  channel._interface_definition_crc = json_crc16
  