From 093480c953cee591d24d02cff3f30c039d22201a Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Mon, 13 Apr 2020 19:04:55 +0200 Subject: [PATCH] use RawConfigParser to avoid interpolation bollocks --- shittyserver.py | 2 +- stateserver.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shittyserver.py b/shittyserver.py index e64ef04..b2fff71 100644 --- a/shittyserver.py +++ b/shittyserver.py @@ -17,7 +17,7 @@ from aiortc import MediaStreamTrack, RTCPeerConnection, RTCSessionDescription # from aiortc.mediastreams import MediaStreamError # type: ignore from raygun4py import raygunprovider # type: ignore -config = configparser.ConfigParser() +config = configparser.RawConfigParser() config.read("serverconfig.ini") ENABLE_EXCEPTION_LOGGING = False diff --git a/stateserver.py b/stateserver.py index 3a4db0e..289bc18 100755 --- a/stateserver.py +++ b/stateserver.py @@ -13,7 +13,7 @@ import random from telnetlib import Telnet import configparser -config = configparser.ConfigParser() +config = configparser.RawConfigParser() config.read("serverconfig.ini") api_key = config.get("stateserver", "myradio_key")