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
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.9]
|
||||
python-version: [3.8]
|
||||
|
||||
steps:
|
||||
|
||||
|
|
|
@ -64,7 +64,10 @@ class MsgProxy:
|
|||
self.msg[key] = value
|
||||
|
||||
def get(self, key: str) -> Any:
|
||||
try:
|
||||
return self[key]
|
||||
except KeyError:
|
||||
return None
|
||||
|
||||
@property
|
||||
def type(self) -> Optional[str]:
|
||||
|
|
Loading…
Reference in a new issue