Opened 12 years ago
Closed 11 years ago
#61 closed (wontfix)
validateContactURN() error is confusing
Reported by: | sedwards@bbn.com | Owned by: | somebody |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Clients | Version: | |
Keywords: | v0.6.0 | Cc: | |
Dependencies: |
Description
The following code
me = Contact( "Xurn:publicid:IDN+example.com+user+jdoe", givenName="Jane", lastName="Doe", email="jdoe@example.com", phone="555-1234" ) print me
Returns
Traceback (most recent call last): File "gmoc_test.py", line 19, in <module> me = Contact( "Xurn:publicid:IDN+example.com+user+jdoe", givenName="Jane", lastName="Doe", email="jdoe@example.com", phone="555-1234" ) File "/home/sedwards/gmoc_client/v0_4_0/gmoc.py", line 497, in __init__ super(Contact, self).__init__(id) File "/home/sedwards/gmoc_client/v0_4_0/gmoc.py", line 331, in __init__ self.id = id File "/home/sedwards/gmoc_client/v0_4_0/gmoc.py", line 270, in __setObjID validVal = validator(value) File "/home/sedwards/gmoc_client/v0_4_0/gmoc.py", line 184, in validateContactURN return URN_PREFIX + '+' + emailParts[1] + '+user+' + emailParts[0] IndexError: list index out of range
If the URN I pass in as an identifier isn't a URN, it should provide a clear message to that effect.
Change History (2)
comment:1 Changed 12 years ago by
Keywords: | v0.6.0 added; v0.4.0 removed |
---|---|
Milestone: | 2012-09-04 client release |
comment:2 Changed 11 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
I now get:
Better but still vague.