Adding try/except for unpacking