Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(22)  |  Call(20)  |  Derive(0)  |  Import(2)

src/p/y/pyvo-HEAD/pyvo/registry/vao.py   pyvo(Download)
            elif contenttype != "text/xml":
                # Unexpected response
                raise dalq.DALFormatError("Wrong response format: " + 
                                          contenttype)
            return out

src/p/y/pyvo-0.0beta2/pyvo/registry/vao.py   pyvo(Download)
            elif contenttype != "text/xml":
                # Unexpected response
                raise dalq.DALFormatError("Wrong response format: " + 
                                          contenttype)
            return out

src/p/y/pyvo-0.0beta2/pyvo/nameresolver/sesame.py   pyvo(Download)
from xml.parsers.expat import ExpatError
 
from ..dal.query import DALQueryError, DALFormatError, DALServiceError
 
endpoints = { "cds": "http://cdsweb.u-strasbg.fr/cgi-bin/nph-sesame",
                out.append(Target(tel))
        except ExpatError as e:
            raise DALFormatError(e)
 
        if len(out) == 0:
            return None
        if ra is None:
            raise DALFormatError("Missing RA value (jradeg)")
        if dec is None:
            raise DALFormatError("Missing Dec value (jdedeg)")
        try:
            return (float(ra), float(dec))
        except ValueError:
            raise DALFormatError("Non-float given in ({0}, {1})".format(ra, dec))

src/p/y/pyvo-HEAD/pyvo/nameresolver/sesame.py   pyvo(Download)
from xml.parsers.expat import ExpatError
 
from ..dal.query import DALQueryError, DALFormatError, DALServiceError
 
endpoints = { "cds": "http://cdsweb.u-strasbg.fr/cgi-bin/nph-sesame",
                out.append(Target(tel))
        except ExpatError as e:
            raise DALFormatError(e)
 
        if len(out) == 0:
            return None
        if ra is None:
            raise DALFormatError("Missing RA value (jradeg)")
        if dec is None:
            raise DALFormatError("Missing Dec value (jdedeg)")
        try:
            return (float(ra), float(dec))
        except ValueError:
            raise DALFormatError("Non-float given in ({0}, {1})".format(ra, dec))