Commit 44c03aa6 authored by Aurel's avatar Aurel

manage case offset is not known


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@286 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent b5f92b07
...@@ -153,7 +153,10 @@ class PartitionTable(object): ...@@ -153,7 +153,10 @@ class PartitionTable(object):
return self.num_filled_rows == self.np return self.num_filled_rows == self.np
def hasOffset(self, offset): def hasOffset(self, offset):
return len(self.partition_list[offset]) > 0 try:
return len(self.partition_list[offset]) > 0
except IndexError:
return False
def log(self): def log(self):
"""Help debugging partition table management. """Help debugging partition table management.
......
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