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

All Samples(10)  |  Call(3)  |  Derive(0)  |  Import(7)
Exception raised when a request is malformed

src/a/s/astral-HEAD/astral/api/handlers/tickets.py   astral(Download)
from astral.api.client import TicketsAPI, NodesAPI, StreamsAPI
from astral.models import Ticket, Node, Stream, session
from astral.exceptions import RequestError, ResourceNotFound, RequestFailed
 
import logging

src/a/s/astral-HEAD/astral/api/client.py   astral(Download)
 
from astral.conf import settings
from astral.exceptions import RequestError, ResourceNotFound
 
import logging

src/a/s/astral-HEAD/astral/api/handlers/streams.py   astral(Download)
from astral.api.client import StreamsAPI
from astral.models import Stream, Node
from astral.exceptions import RequestError
 
import logging

src/a/s/astral-HEAD/astral/node/upstream.py   astral(Download)
import threading
 
from astral.conf import settings
from astral.exceptions import RequestError
 

src/a/s/astral-HEAD/astral/node/bootstrap.py   astral(Download)
 
from astral.models import Node, session, Stream
from astral.exceptions import RequestError
from astral.node.upstream import UpstreamCheckThread
from astral.conf import settings

src/a/s/astral-HEAD/astral/models/node.py   astral(Download)
import json
 
from astral.exceptions import RequestError
from astral.models.base import BaseEntityMixin
from astral.models.event import Event

src/a/s/astral-HEAD/astral/models/tests/test_node.py   astral(Download)
from astral.api.client import NodeAPI
from astral.api.tests import BaseTest
from astral.exceptions import RequestError
 
 
    def test_update_rtt_error(self):
        mockito.when(NodeAPI).ping().thenRaise(RequestError())
        rtt = self.node.update_rtt()
        eq_(rtt, None)
 
    def test_update_downstream_error(self):
        mockito.when(NodeAPI).downstream_check().thenRaise(RequestError())
        downstream = self.node.update_downstream()
        eq_(downstream, None)
 
    def test_update_upstream_error(self):
        mockito.when(NodeAPI).upstream_check().thenRaise(RequestError())
        upstream = self.node.update_upstream()
        eq_(upstream, None)