sde1000 / quicktill

Figure out where all the money and stock went to
GNU General Public License v3.0
43 stars 8 forks source link

Exception in squareterminal.py #262

Closed sde1000 closed 1 year ago

sde1000 commented 1 year ago

Mystery exception from the Dev:

2023-06-02 18:16:57,739 ERROR quicktill.till
  Exception caught at top level
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/quicktill/till.py", line 291, in run
    ui_gtk.run(
  File "/usr/lib/python3/dist-packages/quicktill/ui_gtk.py", line 627, in run
    tillconfig.mainloop.iterate()
  File "/usr/lib/python3/dist-packages/quicktill/event_glib.py", line 23, in iterate
    raise self._exc_info[0].with_traceback(
  File "/usr/lib/python3/dist-packages/quicktill/event_glib.py", line 68, in _call
    self._func()
  File "/usr/lib/python3/dist-packages/quicktill/squareterminal.py", line 517, in _timer_update
    self.update()
  File "/usr/lib/python3/dist-packages/quicktill/squareterminal.py", line 593, in update
    square_payment = self.session.get_payment(square_payment_id)
  File "/usr/lib/python3/dist-packages/quicktill/squareterminal.py", line 397, in get_payment
    r = self.session.get(f"{self.api}payments/{payment_id}")
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 653, in send
    r = dispatch_hook('response', hooks, r, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/hooks.py", line 31, in dispatch_hook
    _hook_data = hook(hook_data, **kwargs)
  File "/usr/lib/python3/dist-packages/quicktill/squareterminal.py", line 320, in _response_hook
    raise _SquareAPIError(
quicktill.squareterminal._SquareAPIError: <unprintable _SquareAPIError object>