From: Antonio Ospite <ao2@ao2.it>
Date: Thu, 14 Jan 2016 17:12:18 +0000 (+0100)
Subject: smooth-dl.py: use more specific exception when looking for the Clip element
X-Git-Url: https://git.ao2.it/smooth-dl.git/commitdiff_plain/7df1a640fc22bda104d419e9a20a4ca46665792d?ds=sidebyside;hp=0ea324ce10ef16ea1a781a8d473fafd1646d9596

smooth-dl.py: use more specific exception when looking for the Clip element
---

diff --git a/smooth-dl.py b/smooth-dl.py
index 9530392..85a0d2e 100755
--- a/smooth-dl.py
+++ b/smooth-dl.py
@@ -136,7 +136,7 @@ def get_manifest(url, dest_dir=tempfile.gettempdir()):
         # if some intermediate client Manifest is used, like in Rai Replay
         clip = manifest.find("Clip")
         manifest_url = clip.attrib["Url"]
-    except:
+    except AttributeError:
         pass
 
     manifest_pattern = re.compile("/manifest$", re.IGNORECASE)