scieloorg / articles_meta

Webservices para recuperar metadados de artigos SciELO armazenados no MongoDB
BSD 2-Clause "Simplified" License
7 stars 17 forks source link

Tratar a exceção do tipo: TypeError para raw.start_page #143

Closed robertatakenaka closed 6 years ago

robertatakenaka commented 6 years ago

Log da produção

9/17/2018 8:33:21 PM    yield self.transform(data)
9/17/2018 8:33:21 PM  File "/usr/local/lib/python3.5/site-packages/articlemeta/export_rsps.py", line 1097, in transform
9/17/2018 8:33:21 PM    startpage = int(raw.start_page)
9/17/2018 8:33:21 PM TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Tratar a exceção do tipo: TypeError