Don't call onError() for python CancelledError
This commit is contained in:
parent
1f12a19b48
commit
ed3a3726e1
|
@ -50,8 +50,6 @@ HBox {
|
||||||
)
|
)
|
||||||
|
|
||||||
}, type => {
|
}, type => {
|
||||||
if (type === "CancelledError") return
|
|
||||||
|
|
||||||
loginFuture = null
|
loginFuture = null
|
||||||
signInTimeout.stop()
|
signInTimeout.stop()
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,12 @@ function onCoroutineDone(uuid, result, error, traceback) {
|
||||||
let type = py.getattr(py.getattr(error, "__class__"), "__name__")
|
let type = py.getattr(py.getattr(error, "__class__"), "__name__")
|
||||||
let args = py.getattr(error, "args")
|
let args = py.getattr(error, "args")
|
||||||
|
|
||||||
|
type === "CancelledError" ?
|
||||||
|
console.warn(`python: cancelled: ${uuid}`) :
|
||||||
|
|
||||||
onError ?
|
onError ?
|
||||||
onError(type, args, error, traceback) :
|
onError(type, args, error, traceback) :
|
||||||
|
|
||||||
console.error(`python: ${uuid}\n${traceback}`)
|
console.error(`python: ${uuid}\n${traceback}`)
|
||||||
|
|
||||||
} else if (onSuccess) { onSuccess(result) }
|
} else if (onSuccess) { onSuccess(result) }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user