Updated code quality ignore bare except warning, replaced unicode by decode & xrange by six.moves.range functions in l10n.py

This commit is contained in:
kuldeep.k@cisinlabs.com 2021-08-27 21:45:00 +05:30
parent 9ba26cacae
commit a03e447d08
No known key found for this signature in database
GPG Key ID: AF4FB299BF7C7C2A

View File

@ -100,7 +100,7 @@ def formatTimestamp(timestamp=None):
if timestamp is not None and not isinstance(timestamp, int): if timestamp is not None and not isinstance(timestamp, int):
try: try:
timestamp = int(timestamp) timestamp = int(timestamp)
except: except: # noqa:E722
timestamp = None timestamp = None
# timestamp can't be less than 0. # timestamp can't be less than 0.