Thanks to Estus Flask I found out that the problem weren't the methods that I used to load the pages, but the pages themselves. If your run my code with Github for example, it works without flaw. I initially tested the links with 2 different pages but both failed so I assumed that it would happen with anything. My bad and thanks for the comments. Although I still don't know why my exception handler catch the errors of other pages,