add check to prevent prints in weboob modules

This commit is contained in:
Romain Bignon 2014-10-06 16:42:56 +02:00
commit be7d49312d
10 changed files with 11 additions and 42 deletions

View file

@ -17,8 +17,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
from random import randint
from weboob.tools.browser import BrowserUnavailable
@ -101,7 +99,7 @@ class ProfilesWalker(Optimization):
self.profiles_queue.add(id)
return
except Exception as e:
print(e)
self.logger.exception(e)
finally:
if self.view_cron is not None:
self.view_cron = self.sched.schedule(randint(5, 10), self.view_profile)