Closed lvps closed 5 years ago
As soon as we manage to maintain a <= 1 recursion depth it's fine. The problem is: it's more elegant to:
The wrapping methods are actually a nice idea.... We could even stop to write stuff like
self.last_request = self.session.get ....
cause in the end the last_request is handled by this hypothetic get method itself, and we could write instead
self.get...
so tiny... so easy... so smooth.... let's do it dude!
@Hyd3L Yeah dude!
Basically, add wrappers for get, post, etc... to Tarallo class:
And call
self.get(...)
instead ofself.session.get(...)
.Not sure if it's better, it's just an idea.
This allows retrying login exactly once without recursion.