python/machine.py: Handle None events in events_wait
commit1847a4a8c209379cd7f6788c0dcd5c17c2bf0907
authorJohn Snow <jsnow@redhat.com>
Tue, 6 Oct 2020 23:58:02 +0000 (6 19:58 -0400)
committerJohn Snow <jsnow@redhat.com>
Tue, 20 Oct 2020 13:37:57 +0000 (20 09:37 -0400)
tree2afbbe734b5f5dd68399644e63d93a51357aac54
parent652809dfa665860c1ea4622c540a30fbe18dc9e7
python/machine.py: Handle None events in events_wait

If the timeout is 0, we can get None back. Handle this explicitly.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 20201006235817.3280413-6-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/machine.py