Fix exceptions which occurs during auth sometime

Mimic the https://github.com/puzzle1536/hubic-wrapper-to-swift/blob/master/hubic.py code