fix: default account type is TYPE_UNKNOWN, not None
This commit is contained in:
parent
aa2e93d461
commit
d1c9d0de49
1 changed files with 1 additions and 0 deletions
|
|
@ -94,6 +94,7 @@ class AccountsPage(LoggedPage, HTMLPage):
|
|||
for pattern, actype in AccountsPage.TYPES.iteritems():
|
||||
if label.startswith(pattern):
|
||||
return actype
|
||||
return Account.TYPE_UNKNOWN
|
||||
|
||||
obj_id = Env('id')
|
||||
obj_label = Label(CleanText('./td[1]/a'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue