[issue10108] ExpatError not property wrapped

2019-09-14 Thread Joannah Nanjekye


Change by Joannah Nanjekye :


--
nosy: +nanjekyejoannah

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10108] ExpatError not property wrapped

2019-09-10 Thread Stefan Behnel


Stefan Behnel  added the comment:

I agree that it's surprising to get a low-level parser error from a high-level 
library like xmlrpc. I think this can be changed without deprecation, because 
users must expect exceptions from the xmlrpc library in any case.

Targeting to Py3.9, needs patch with tests.

--
priority: normal -> low
stage:  -> needs patch
versions: +Python 3.9 -Python 2.7, Python 3.2, Python 3.7, Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10108] ExpatError not property wrapped

2019-05-14 Thread Stéphane Wirtel

Stéphane Wirtel  added the comment:

Hi Scoder,

I am not sure if this issue is relevant for 3.7 and 3.8 but do you want to 
check this issue?

Thank you,

--
nosy: +matrixise, scoder
versions: +Python 3.7, Python 3.8 -Python 3.1

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10108] ExpatError not property wrapped

2010-10-27 Thread Fred L. Drake, Jr.

Changes by Fred L. Drake, Jr. fdr...@acm.org:


--
nosy: +fdrake

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10108
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10108] ExpatError not property wrapped

2010-10-15 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +d...@python
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10108
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10108] ExpatError not property wrapped

2010-10-14 Thread Leo Shklovskii

New submission from Leo Shklovskii l...@thermopylae.net:

From my understanding of the documentation, the expected behavior is for 
xmlrpclib to raise an xmlrpclib.Fault wrapping the original error from 
whatever parser it chose to use if there's an error in parsing the response.

If, however, its using Expat under the hood and the response is completely 
blank, the ExpatError percolates up to the calling code unwrapped.

The following stack trace
/usr/lib/python2.6/xmlrpclib.pyc in __call__(self, *args)
   1197 return _Method(self.__send, %s.%s % (self.__name, name))
   1198 def __call__(self, *args):
- 1199 return self.__send(self.__name, args)
   1200
   1201 ##


/usr/lib/python2.6/xmlrpclib.pyc in __request(self, methodname, params)
   1487 self.__handler,
   1488 request,
- 1489 verbose=self.__verbose
   1490 )
   1491

/usr/lib/python2.6/xmlrpclib.pyc in request(self, host, handler, request_body, 
verbose)
   1251 sock = None
   1252
- 1253 return self._parse_response(h.getfile(), sock)
   1254
   1255 ##


/usr/lib/python2.6/xmlrpclib.pyc in _parse_response(self, file, sock)
   1388
   1389 file.close()
- 1390 p.close()
   1391
   1392 return u.close()

/usr/lib/python2.6/xmlrpclib.pyc in close(self)
602
603 def close(self):
-- 604 self._parser.Parse(, 1) # end of data
605 del self._target, self._parser # get rid of circular 
references
606

ExpatError: no element found: line 1, column 0

Please let me know if I'm misinterpreting the docs or if you need any other 
information to repro this bug.

--
components: XML
messages: 118721
nosy: leos
priority: normal
severity: normal
status: open
title: ExpatError not property wrapped
type: behavior
versions: Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10108
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10108] ExpatError not property wrapped

2010-10-14 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 From my understanding of the documentation, the expected behavior
 is for xmlrpclib to raise an xmlrpclib.Fault [...]

What specific wording in the documentation makes you thinks so?

If anything, I'd expect a ResponseError (which appears undocumented).

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10108
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10108] ExpatError not property wrapped

2010-10-14 Thread Leo Shklovskii

Leo Shklovskii l...@thermopylae.net added the comment:

Looking at the docs more closely, you're right, I'm not entirely sure what 
error should come out in that case but my main point with the bug is that the 
error should be an xmlrpclib error rather than one from the specific parser 
that its choosing to use.

Should it be a separate bug that ReponseError is undocumented then?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10108
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10108] ExpatError not property wrapped

2010-10-14 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Not necessarily a separate report. Would you be interested in writing a patch 
that clears that all up (for 2.7 and/or 3.2)?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10108
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10108] ExpatError not property wrapped

2010-10-14 Thread Leo Shklovskii

Leo Shklovskii l...@thermopylae.net added the comment:

I'm sorry, I would like to but I don't have the time in the near future. I'm 
running into this as a secondary symptom of a bigger issue (in our own setup, 
not in Python) that I'm troubleshooting.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10108
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com