From 20e53c4d3f1d391302500e3c6b58f0a21669612b Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Tue, 24 Oct 2017 12:14:35 -0700 Subject: [PATCH] Fix a few more lint issues Change-Id: I0d420f3053f391fa225e4b8179e45fd1138f5c65 --- .../google-cloud-language/samples/snippets/movie_nl/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-cloud-language/samples/snippets/movie_nl/main.py b/packages/google-cloud-language/samples/snippets/movie_nl/main.py index 73e624889298..06be1c9c6f32 100644 --- a/packages/google-cloud-language/samples/snippets/movie_nl/main.py +++ b/packages/google-cloud-language/samples/snippets/movie_nl/main.py @@ -128,7 +128,7 @@ def get_wiki_title(wiki_url): try: content = requests.get(wiki_url).text return content.split('title')[1].split('-')[0].split('>')[1].strip() - except: + except KeyError: return os.path.basename(wiki_url).replace('_', ' ')