From 86f1a6bd45241a49cc17a7db159cd5fb84944c90 Mon Sep 17 00:00:00 2001
From: Magnus Walbeck <mw@mwalbeck.org>
Date: Sat, 1 Jul 2017 18:10:30 +0200
Subject: [PATCH] Exception handling for connections error and timeouts

---
 podfox/__init__.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/podfox/__init__.py b/podfox/__init__.py
index dffed0f..30a8fb4 100755
--- a/podfox/__init__.py
+++ b/podfox/__init__.py
@@ -39,7 +39,10 @@ import re
 
 from email.utils import parsedate
 from time import time, mktime, gmtime, strftime, sleep
+<<<<<<< cc4abf40a2e4fe00e52aff8d4e1c21d2219455f6
 from tqdm import tqdm
+=======
+>>>>>>> Exception handling for connections error and timeouts
 
 CONFIGURATION = {}
 
@@ -331,11 +334,11 @@ def download_single(folder, url, filename):
     if 'connection_retries' in CONFIGURATION:
         connection_retries = CONFIGURATION['connection_retries']
     else:
-        connection_retries = 9
+        connection_retries = 3
 
     if filename is None:
         filename = get_original_filename(url)
-
+    
     print_green("{:s} downloading".format(filename))
     for i in range(connection_retries):
         try: