Commit b6e6169b authored by Dan Pascu's avatar Dan Pascu

Use a generic fail reason when none is provided

parent 593c6e81
...@@ -838,7 +838,7 @@ class BlinkSession(QObject): ...@@ -838,7 +838,7 @@ class BlinkSession(QObject):
if notification.data.code == 487: if notification.data.code == 487:
reason = 'Call cancelled' reason = 'Call cancelled'
else: else:
reason = notification.data.reason reason = notification.data.reason or 'Call failed'
else: else:
reason = notification.data.failure_reason reason = notification.data.failure_reason
self._terminate(reason=reason, error=True) self._terminate(reason=reason, error=True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment