diff options
author | Kieran Spear <kispear@gmail.com> | 2013-08-13 16:54:59 +1000 |
---|---|---|
committer | Kieran Spear <kispear@gmail.com> | 2013-08-13 17:21:32 +1000 |
commit | 242c8df495d8a22bd58797691989852d1b714824 (patch) | |
tree | 519d761d1989ca1aca0f98f9dd0cccfaa9f99874 /horizon/templatetags | |
parent | fe659b231a9542e4703c13e7e1173aa7e0767cfc (diff) | |
download | horizon-242c8df495d8a22bd58797691989852d1b714824.tar.gz |
Enable H201: do not write "except:"
Fixes all occurrences of this. We have a custom exception handler
in Horizon anyway that only catches ClientException in most of these
cases, but this commit lets us gate on the other cases.
Change-Id: Iea3dc13817f3e5b775b2024424bf3a906da5584b
Closes-Bug: #1211657
Diffstat (limited to 'horizon/templatetags')
-rw-r--r-- | horizon/templatetags/parse_date.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/horizon/templatetags/parse_date.py b/horizon/templatetags/parse_date.py index f4309a750..bebe797b9 100644 --- a/horizon/templatetags/parse_date.py +++ b/horizon/templatetags/parse_date.py @@ -44,7 +44,7 @@ class ParseDateNode(template.Node): if not timezone.is_aware(parsed): parsed = timezone.make_aware(parsed, timezone.utc) return parsed - except: + except Exception: pass return None |