Swap to context fail method on error

This commit is contained in:
up-n-atom
2024-02-23 14:48:02 -05:00
committed by GitHub
parent 0b8c84421e
commit 8c1980060e
4 changed files with 4 additions and 9 deletions
+1 -2
View File
@@ -8,5 +8,4 @@ async def flush_log() -> None:
async with xmo.flipflop('Device/DeviceInfo/FlushDeviceLog') as client:
pass
except Exception as e:
click.echo(e, err=True)
raise click.Abort()
ctx.fail(e)