Skip to content

Commit 72f7355

Browse files
committed
Some debugging info added
1 parent ee61ccf commit 72f7355

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

authenticating-users/main.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
import googleclouddebugger
16+
googleclouddebugger.enable()
17+
1518
from flask import Flask
1619
app = Flask(__name__)
1720

@@ -66,8 +69,8 @@ def validate_assertion(assertion):
6669
audience=audience()
6770
)
6871
return info['email'], info['sub']
69-
except:
70-
return None, None
72+
except Exception as e:
73+
return e.message, None
7174

7275

7376
@app.route('/', methods=['GET'])

authenticating-users/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ Flask>=1.0.0
22
cryptography
33
python-jose[cryptography]
44
requests
5+
google-python-cloud-debugger

0 commit comments

Comments
 (0)