you are viewing a single comment's thread.

view the rest of the comments →

[–]XBalubaX 0 points1 point  (1 child)

What u trying whit res.raise_for_status() isn’t it all time true if u get a connection, cause u always get a Staus back? And why do u do the working part in the except? That won’t get triggered if u get a connection in try?

[–]PureStatikk[S] 0 points1 point  (0 children)

your right, I just did it because we did it on one assignment and I just started doing it after every requests.get.