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
|
||||
|
||||
from weboob.tools.mech import ClientForm
|
||||
ControlNotFoundError = ClientForm.ControlNotFoundError
|
||||
|
||||
|
|
@ -75,7 +73,6 @@ class VideoPage(Page):
|
|||
obj = self.parser.select(self.document.getroot(), 'meta[name=available]', 1)
|
||||
if obj is not None:
|
||||
value = obj.attrib['content']
|
||||
print(value)
|
||||
m = re.match('(\d\d)-(\d\d)-(\d\d\d\d)\s*(\d\d):(\d\d)', value)
|
||||
if not m:
|
||||
raise BrokenPageError('Unable to parse datetime: %r' % value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue