Skip to content

Commit

Permalink
Correction for an exception incorrectly managed in the PDF case
Browse files Browse the repository at this point in the history
  • Loading branch information
metalbobinou authored Jul 28, 2023
1 parent 0b9953b commit 933f35a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/4-Download_Date_to_PDF.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,7 @@ def get_document_PDF_debat_parlementaire(ark_id, directory_output, filename_pref

# Exception HTTP Error
except urllib.error.HTTPError as e:
## Error 503 : we reached the end of the document
if (page == 1):
print("### HTTP ERROR ON PAGE 1:")
else:
print("### HTTP ERROR:")

print("### HTTP ERROR:")
if hasattr(e, 'reason'):
print('Failed to reach a server.')
print('Reason: ', e.reason)
Expand Down

0 comments on commit 933f35a

Please sign in to comment.