Kaynağa Gözat

reassigning UnicodeDecodeError to global scope

Andrej 1 yıl önce
ebeveyn
işleme
750ce8c3af
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      labkeyInterface.py

+ 1 - 1
labkeyInterface.py

@@ -146,7 +146,7 @@ class labkeyInterface:
         except AttributeError:
             print('Failed')
             return None
-        except chardet.UnicodeDecodeError:
+        except UnicodeDecodeError:
             encoding='ASCII'
             jsonData=json.loads(response.data.decode(encoding))