add check to prevent prints in weboob modules
This commit is contained in:
parent
1eb96574d0
commit
be7d49312d
10 changed files with 11 additions and 42 deletions
|
|
@ -18,8 +18,6 @@
|
|||
# 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 __future__ import print_function
|
||||
|
||||
import urllib
|
||||
import mechanize
|
||||
from datetime import datetime
|
||||
|
|
@ -86,7 +84,7 @@ class HelloBank(Browser):
|
|||
|
||||
accounts = self.page.get_accounts()
|
||||
if len(accounts) == 0:
|
||||
print('no accounts')
|
||||
self.logger.warning('no accounts')
|
||||
# oops, no accounts? check if we have not exhausted the allowed use
|
||||
# of this password
|
||||
for img in self.document.getroot().cssselect('img[align="middle"]'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue