Skip to content

Commit

Permalink
Loggear en Sentry errores al recibir dinero #46 (#47)
Browse files Browse the repository at this point in the history
* Loggear en Sentry errores al recibir dinero #46

* Update views.py
  • Loading branch information
pachCode authored and ricardo8990 committed Jan 22, 2019
1 parent e55ec02 commit 5d8476c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion speid/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ def create_orden():
db.session.commit()
r = request.json
r['estado'] = Estado.convert_to_stp_state(Estado(response['status']))
except Exception:
except Exception as exc:
r = dict(estado='DEVOLUCION')
capture_exception(exc)
return make_response(jsonify(r), 201)


Expand Down

0 comments on commit 5d8476c

Please sign in to comment.