Closed cmeadows closed 8 years ago
I have tried the following:
except Exception, e: return Promise.reject(e)
except Exception, e:
return Promise.reject(e)
return Promise.reject(Exception(e))
Both return the following error:
TypeError: unbound method reject() must be called with Promise instance as first argument (got Exception instance instead)
You should use Promise.rejected instead 😉 Closing issue
Promise.rejected
I have tried the following:
except Exception, e:
return Promise.reject(e)
return Promise.reject(Exception(e))
Both return the following error:
TypeError: unbound method reject() must be called with Promise instance as first argument (got Exception instance instead)