Fixed CI and MsgProxy.get() method
Signed-off-by: Ari Archer <truncateddinosour@gmail.com>
This commit is contained in:
parent
6d987bdfb5
commit
4a1ef1bf8d
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -13,7 +13,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.9]
|
python-version: [3.8]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,10 @@ class MsgProxy:
|
||||||
self.msg[key] = value
|
self.msg[key] = value
|
||||||
|
|
||||||
def get(self, key: str) -> Any:
|
def get(self, key: str) -> Any:
|
||||||
return self[key]
|
try:
|
||||||
|
return self[key]
|
||||||
|
except KeyError:
|
||||||
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def type(self) -> Optional[str]:
|
def type(self) -> Optional[str]:
|
||||||
|
|
Loading…
Reference in a new issue