Make sure all except statements are no longer empty, should help a lot with debugging.
This commit is contained in:
@ -87,8 +87,8 @@ class cursorManager():
|
||||
currApp = self.env['runtime']['applicationManager'].getCurrentApplication()
|
||||
if self.env['commandBuffer']['windowArea'][currApp]['1'] != None:
|
||||
return True
|
||||
except:
|
||||
pass
|
||||
except Exception as e:
|
||||
self.env['runtime']['debug'].writeDebugOut('cursorManager isApplicationWindowSet: Error checking window area: ' + str(e), debug.debugLevel.ERROR)
|
||||
return False
|
||||
def setWindowForApplication(self, start = None, end = None):
|
||||
x1 = 0
|
||||
@ -129,6 +129,7 @@ class cursorManager():
|
||||
currApp = self.env['runtime']['applicationManager'].getCurrentApplication()
|
||||
try:
|
||||
del self.env['commandBuffer']['windowArea'][currApp]
|
||||
except:
|
||||
except Exception as e:
|
||||
self.env['runtime']['debug'].writeDebugOut('cursorManager clearWindowForApplication: Error clearing window area: ' + str(e), debug.debugLevel.ERROR)
|
||||
return False
|
||||
return True
|
||||
|
Reference in New Issue
Block a user