from oscar.apps.payment.exceptions import PaymentError


class PayPalError(PaymentError):
    pass

try:
    from oscar.apps.payment.exceptions import PaymentError
except ImportError:
    class PaymentError(Exception):
        pass

class PayPalError(PaymentError):
    pass
Make gateway importable without django-oscar installed.
Make gateway importable without django-oscar installed.
