mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-22 14:43:08 +00:00
m1n1.shell.HistoryConsole: Guard against mon.poll() exceptions
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
912776372a
commit
9a480c656b
1 changed files with 4 additions and 1 deletions
|
@ -36,7 +36,10 @@ class HistoryConsole(code.InteractiveConsole):
|
|||
def runcode(self, code):
|
||||
super().runcode(code)
|
||||
if "mon" in self.locals:
|
||||
self.locals["mon"].poll()
|
||||
try:
|
||||
self.locals["mon"].poll()
|
||||
except Exception as e:
|
||||
print(f"mon.poll() failed: {e!r}")
|
||||
if "u" in self.locals:
|
||||
self.locals["u"].push_simd()
|
||||
|
||||
|
|
Loading…
Reference in a new issue