add BrowserToBeContinued exception and handle it
This commit is contained in:
parent
81503a88e8
commit
3a05b29bc3
2 changed files with 14 additions and 1 deletions
|
|
@ -17,6 +17,7 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from weboob.tools.value import Value
|
||||
|
||||
class BrowserIncorrectPassword(Exception):
|
||||
pass
|
||||
|
|
@ -38,6 +39,13 @@ class BrowserUnavailable(Exception):
|
|||
pass
|
||||
|
||||
|
||||
class BrowserToBeContinued(BrowserUnavailable):
|
||||
def __init__(self, *args):
|
||||
self.fields = []
|
||||
for arg in args:
|
||||
self.fields.append(Value(label=arg))
|
||||
|
||||
|
||||
class BrowserHTTPNotFound(BrowserUnavailable):
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue