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:
parent
9ba26cacae
commit
a03e447d08
|
@ -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.
|
||||||
|
|
Reference in New Issue
Block a user