Did I find the right examples for you? yes no

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/d/j/django-lfs-0.7.7/lfs/order/utils.py   django-lfs(Download)
    try:
        voucher_number = lfs.voucher.utils.get_current_voucher_number(request)
        voucher = Voucher.objects.get(number=voucher_number)
    except Voucher.DoesNotExist:
        voucher = None

src/d/j/django-lfs-0.7.7/lfs/checkout/views.py   django-lfs(Download)
    try:
        voucher_number = lfs.voucher.utils.get_current_voucher_number(request)
        voucher = Voucher.objects.get(number=voucher_number)
    except Voucher.DoesNotExist:
        display_voucher = False

src/d/j/django-lfs-0.7.7/lfs/cart/views.py   django-lfs(Download)
    voucher_number = lfs.voucher.utils.get_current_voucher_number(request)
    try:
        voucher = Voucher.objects.get(number=voucher_number)
    except Voucher.DoesNotExist:
        display_voucher = False

src/d/j/django-lfs-0.7.7/lfs/cart/utils.py   django-lfs(Download)
            try:
                voucher_number = lfs.voucher.utils.get_current_voucher_number(request)
                voucher = Voucher.objects.get(number=voucher_number)
            except Voucher.DoesNotExist:
                pass

src/d/j/django-lfs-HEAD/lfs/order/utils.py   django-lfs(Download)
    try:
        voucher_number = lfs.voucher.utils.get_current_voucher_number(request)
        voucher = Voucher.objects.get(number=voucher_number)
    except Voucher.DoesNotExist:
        voucher = None

src/d/j/django-lfs-HEAD/lfs/checkout/views.py   django-lfs(Download)
        try:
            voucher_number = lfs.voucher.utils.get_current_voucher_number(request)
            voucher = Voucher.objects.get(number=voucher_number)
        except Voucher.DoesNotExist:
            pass

src/d/j/django-lfs-HEAD/lfs/cart/views.py   django-lfs(Download)
    voucher_number = lfs.voucher.utils.get_current_voucher_number(request)
    try:
        voucher = Voucher.objects.get(number=voucher_number)
    except Voucher.DoesNotExist:
        display_voucher = False