Fixed CI and MsgProxy.get() method

Signed-off-by: Ari Archer <truncateddinosour@gmail.com>
This commit is contained in:
Ari Archer 2022-02-17 00:42:21 +02:00
parent 6d987bdfb5
commit 4a1ef1bf8d
Signed by untrusted user who does not match committer: ari
GPG key ID: A50D5B4B599AF8A2
2 changed files with 5 additions and 2 deletions

View file

@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
python-version: [3.8]
steps:

View file

@ -64,7 +64,10 @@ class MsgProxy:
self.msg[key] = value
def get(self, key: str) -> Any:
return self[key]
try:
return self[key]
except KeyError:
return None
@property
def type(self) -> Optional[str]: