From a03e447d08ade8749b3c98df6954dc8abc951bfd Mon Sep 17 00:00:00 2001 From: "kuldeep.k@cisinlabs.com" Date: Fri, 27 Aug 2021 21:45:00 +0530 Subject: [PATCH] Updated code quality ignore bare except warning, replaced unicode by decode & xrange by six.moves.range functions in l10n.py --- src/l10n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/l10n.py b/src/l10n.py index 406e3221..f556b7ef 100644 --- a/src/l10n.py +++ b/src/l10n.py @@ -100,7 +100,7 @@ def formatTimestamp(timestamp=None): if timestamp is not None and not isinstance(timestamp, int): try: timestamp = int(timestamp) - except: + except: # noqa:E722 timestamp = None # timestamp can't be less than 0.