From ad3426af9b8097598b810084871c930713aa4c11 Mon Sep 17 00:00:00 2001 From: Ant Zucaro Date: Sat, 29 Apr 2017 10:43:06 -0400 Subject: [PATCH] Move the dummy session var up to convince PyCharm it will be there. --- xonstat/views/submission.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xonstat/views/submission.py b/xonstat/views/submission.py index e0ada1c..28026ad 100644 --- a/xonstat/views/submission.py +++ b/xonstat/views/submission.py @@ -1048,10 +1048,10 @@ def submit_stats(request): """ Entry handler for POST stats submissions. """ - try: - # placeholder for the actual session - session = None + # placeholder for the actual session + session = None + try: log.debug("\n----- BEGIN REQUEST BODY -----\n" + request.body + "----- END REQUEST BODY -----\n\n") -- 2.39.2