pikers / piker

(e2e) foss trading for non-tinas
GNU Affero General Public License v3.0
102 stars 17 forks source link

Crash when an order is triggered when the notification daemon isn't running (linux only) #427

Closed jaredgoldman closed 1 year ago

jaredgoldman commented 1 year ago

When performing the following steps, Piker fails:

goodboy commented 1 year ago

Yah so the notify is called in the order mode loop: https://github.com/pikers/piker/blob/master/piker/ui/order_mode.py#L1042

and that func can probably also just emit a warning log msg instead of raising when the subproc call fail?

we should probably also try to gather and use any stderr/stdout content in the warning message too.

goodboy commented 1 year ago

Ok so digging through trio.run_process() shows that you can pass stdout/err bool flags and also avoid the check: bool = False error raising.

Further the CompletedProcessObject has all the stdstreams you'l need.