Skip to content

Commit 64e791d

Browse files
committed
Fix exception representation
1 parent 1bb6d9b commit 64e791d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

w3lib/html.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ def remove_tags(text, which_ones=(), keep=(), encoding=None):
174174
You can't remove some and keep some:
175175
176176
>>> w3lib.html.remove_tags(doc, which_ones=('a',), keep=('p',))
177-
...
177+
Traceback (most recent call last):
178+
...
178179
ValueError: Cannot use both which_ones and keep
179180
>>>
180181

0 commit comments

Comments
 (0)