diff --git a/pandas/io/html.py b/pandas/io/html.py
index 490c574463b9b..5b96ce23515c9 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -889,6 +889,9 @@ def _parse(flavor, io, match, attrs, encoding, displayed_only, **kwargs):
flavor = _validate_flavor(flavor)
compiled_match = re.compile(match) # you can pass a compiled regex here
+ if attrs is None:
+ attrs = {}
+
# hack around python 3 deleting the exception variable
retained = None
for flav in flavor: