mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Instead of removing the error, for consistency, leaving the error as-was
and replaced the message with something that may or may not be more understandable :P
This commit is contained in:
parent
e7c3e4c5ac
commit
bb10dfc505
@ -60,8 +60,7 @@ class ODict:
|
|||||||
key, they are cleared.
|
key, they are cleared.
|
||||||
"""
|
"""
|
||||||
if isinstance(valuelist, basestring):
|
if isinstance(valuelist, basestring):
|
||||||
# convert the string into a single element list.
|
raise ValueError("Expected list instead of string. E.g. odict['elem'] = ['string1', 'string2']")
|
||||||
valuelist = [valuelist]
|
|
||||||
|
|
||||||
new = self._filter_lst(k, self.lst)
|
new = self._filter_lst(k, self.lst)
|
||||||
for i in valuelist:
|
for i in valuelist:
|
||||||
|
Loading…
Reference in New Issue
Block a user