Skip to content

Commit

Permalink
selfcheck: fix attibute error
Browse files Browse the repository at this point in the history
* Fixes attribute error when we raise a 'NoCirculationAction` exception.

Co-Authored-by: Lauren-D <laurent.dubois@itld-solutions.be>
  • Loading branch information
lauren-d authored and iGor milhit committed Sep 2, 2021
1 parent f563817 commit 67e17ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rero_ils/modules/selfcheck/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def selfcheck_checkout(transaction_user_pid, item_barcode, patron_barcode,
'another patron'))
except NoCirculationAction as circ_no_action:
checkout.get('screen_messages', []).append(
_(circ_no_action.description))
_('No circulation action is possible'))
except CirculationException as circ_err:
checkout.get('screen_messages', []).append(
_(circ_err.description))
Expand Down Expand Up @@ -474,7 +474,7 @@ def selfcheck_checkin(transaction_user_pid, item_barcode, **kwargs):
# TODO: implements `print_line`
except NoCirculationAction as circ_no_action:
checkin.get('screen_messages', []).append(
_(circ_no_action.description))
_('No circulation action is possible'))
except CirculationException as circ_err:
checkin.get('screen_messages', []).append(
_(circ_err.description))
Expand Down

0 comments on commit 67e17ee

Please sign in to comment.