[BUG] Put back the login call in the try statement