HUE-8737 [py3] Avoid unbound exception on Thrift connection error

Review Request #14438 — Created Nov. 4, 2019 and submitted

romain
hue
master
HUE-8737
hue
jgauthier, johan, ranade, romain, weixia, yingc
commit ea40cb639b65e663c68806b9d2c38077f2f67277
Author: Romain <romain.rigaux@gmail.com>
Date:   Mon Nov 4 08:24:02 2019 -0800

    HUE-8737 [py3] Avoid unbound exception on Thrift connection error
    
    Now the e object is not present anymore.
    UnboundLocalError: local variable 'e' referenced before assignment

:100644 100644 c8b03ff069 ab797004a8 M	apps/security/src/security/templates/layout.mako
:100644 100644 9d9cf8ea4f 00c6410b8c M	desktop/core/src/desktop/lib/thrift_util.py
:100644 100644 7336a85ecc 92f608dccc M	desktop/libs/libsentry/src/libsentry/sentry_site.py

Tricky to test properly with more investment
Tried with Sentry service up and down

jgauthier
  1. Ship It!
    1. Actually, let me see for adding a test

  2. 
      
romain
Review request changed

Status: Closed (submitted)

Loading...