Re: xml.etree.ElementTree if element does not exist?

2013-04-29 Thread Stefan Holdermans
Ombongi, > however, if i pass xml data that DOES NOT contain sepid element, i get an > error: > > Traceback (most recent call last): > File "/usr/local/bin/receive.py", line 21, in > sepid = > content.find(".//{http://www.huawei.com.cn/schema/common/v2_1}sepid";).text > AttributeError: '

Re: request for help

2013-02-18 Thread Stefan Holdermans
Leonardi, > i saved the above program from python shell into a file as "circle.py" . when > i type "import circle" i get error.. Next time, please mention what kind of error you're getting. Was it an indentation error? Because, as you pasted it, your code would lead to one. If I fix the ind