summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-31 19:13:08 +0100
committerhut <hut@lavabit.com>2009-12-31 19:13:08 +0100
commitf7819821c71a687a28319d60bb73083b1abd0138 (patch)
tree20bca3cb2000f59c138e22fac8276afc4505fe2b /ranger
parent42fd36907c9d9e4c68634e35e7b5de2c91c9164e (diff)
downloadranger-f7819821c71a687a28319d60bb73083b1abd0138.tar.gz
fixed tc_displayable
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/displayable.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ranger/gui/displayable.py b/ranger/gui/displayable.py
index c5e1dbac..1929c4e2 100644
--- a/ranger/gui/displayable.py
+++ b/ranger/gui/displayable.py
@@ -179,19 +179,19 @@ class Displayable(EnvironmentAware, FileManagerAware, SettingsAware):
 				wid = maxx - x
 
 			if x < 0 or y < 0:
-				raise OutOfBoundsException("Starting point below zero!")
+				raise ValueError("Starting point below zero!")
 
 			#if wid < 1 or hei < 1:
 			#	raise OutOfBoundsException("WID and HEI must be >=1!")
 
 			if x + wid > maxx and y + hei > maxy:
-				raise OutOfBoundsException("X and Y out of bounds!")
+				raise ValueError("X and Y out of bounds!")
 
 			if x + wid > maxx:
-				raise OutOfBoundsException("X out of bounds!")
+				raise ValueError("X out of bounds!")
 
 			if y + hei > maxy:
-				raise OutOfBoundsException("Y out of bounds!")
+				raise ValueError("Y out of bounds!")
 
 		window_is_cleared = False
 
@@ -210,7 +210,7 @@ class Displayable(EnvironmentAware, FileManagerAware, SettingsAware):
 					self.win.resize(hei, wid)
 				except:
 					pass
-					#raise OutOfBoundsException("Resizing Failed!")
+					#raise ValueError("Resizing Failed!")
 
 			self.hei, self.wid = self.win.getmaxyx()