Skip to content

Commit

Permalink
Use ImportError instead of bare except:
Browse files Browse the repository at this point in the history
  • Loading branch information
ambv committed Jan 10, 2024
1 parent 2a6b51f commit 462e6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html5lib/tests/test_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import six
try:
from unittest.mock import Mock
except:
except ImportError:
from mock import Mock

from . import support
Expand Down

0 comments on commit 462e6b3

Please sign in to comment.