Skip to content

Commit 57236b8

Browse files
committed
Silence bare-except
1 parent 76f864a commit 57236b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

html5lib/inputstream.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def openStream(self, source):
449449

450450
try:
451451
stream.seek(stream.tell())
452-
except:
452+
except: # pylint:disable=bare-except
453453
stream = BufferedStream(stream)
454454

455455
return stream

html5lib/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# We need this with u"" because of http://bugs.jython.org/issue2039
2828
_x = eval('u"\\uD800"') # pylint:disable=eval-used
2929
assert isinstance(_x, text_type)
30-
except:
30+
except: # pylint:disable=bare-except
3131
supports_lone_surrogates = False
3232
else:
3333
supports_lone_surrogates = True

0 commit comments

Comments
 (0)