diff --git a/ppparis.py b/ppparis.py
index aa224e4a4eb6346306a3e54f1da29e12216a9911..e8b4faa79aa88d01660eeaf2a710c9e72680a7fc 100755
--- a/ppparis.py
+++ b/ppparis.py
@@ -50,7 +50,7 @@ def download_file(url, dest):
     f = open(dest,'wb')
     f.write(file.content);
     f.close()
-  except (requests.ConnectionError, requests.ChunkedEncodingError):
+  except (requests.exceptions.ConnectionError, requests.exceptions.ChunkedEncodingError):
     logging.warning(f'ATTENTION: la connexion a été interrompue pendant le téléchargement de {url}, nouvelle tentative...')
     download_file(url, dest)
   except Exception as exc: