From a9b2f100151a0b4bce4b8b3639642776bb1ad9cd Mon Sep 17 00:00:00 2001 From: gordielachance Date: Mon, 3 Oct 2016 00:35:10 +0200 Subject: [PATCH] fix for "local variable 'connected' referenced before assignment" --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index f1b8c51..0a8e18f 100644 --- a/main.py +++ b/main.py @@ -38,6 +38,9 @@ def get_connection(): global connection if connection is None: + + connected = False + # Create connection try: