Commit 90556157 authored by Dalai Felinto's avatar Dalai Felinto
Browse files

Prevent error on super to crash the entire addon

parent b7a34453
......@@ -61,11 +61,12 @@ class Oculus(HMD_Base):
self.height = self._hmd.height_right
# initialize FBO
super(Oculus, self).init()
if not super(Oculus, self).init():
raise Exception("Failed to initialize HMD")
# send it back to HMD
if not self._setup():
raise Exception("Failed to setup HMD")
raise Exception("Failed to setup Oculus")
except Exception as E:
self.error("init", E, True)
......
Supports Markdown
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