[issue9432] unquote(None) raises AttributeError - Instead of TypeError
Senthil Kumaran
report at bugs.python.org
Fri Jul 30 21:31:44 CEST 2010
New submission from Senthil Kumaran <orsenthil at gmail.com>:
>>> from urllib.parse import unquote
>>> unquote(None)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/senthil/python/release31-maint/Lib/urllib/parse.py", line 331, in unquote
res = string.split('%')
AttributeError: 'NoneType' object has no attribute 'split'
As obvious, the AttributeError above is not an Intentional one and is a mistake. TypeError is correct.
Opening this issue subsequent to the discussion in msg12098
----------
assignee: orsenthil
messages: 112100
nosy: orsenthil
priority: normal
severity: normal
status: open
title: unquote(None) raises AttributeError - Instead of TypeError
type: behavior
versions: Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9432>
_______________________________________
More information about the Python-bugs-list
mailing list