put spi_com call in try/except