From: Ant Zucaro Date: Sat, 29 Apr 2017 14:43:06 +0000 (-0400) Subject: Move the dummy session var up to convince PyCharm it will be there. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ad3426af9b8097598b810084871c930713aa4c11;p=xonotic%2Fxonstat.git Move the dummy session var up to convince PyCharm it will be there. --- 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")