better error message if array-style slice other than [:]
This commit is contained in:
parent
1b0f60298d
commit
760da6bade
1 changed files with 1 additions and 1 deletions
|
|
@ -772,7 +772,7 @@ class Jp2k(Jp2kBox):
|
||||||
# Should have a slice object where start = stop = step = None
|
# Should have a slice object where start = stop = step = None
|
||||||
self.write(data)
|
self.write(data)
|
||||||
else:
|
else:
|
||||||
msg = "Images currently must be written entirely at once."
|
msg = "Partial write operations are currently not allowed."
|
||||||
raise TypeError(msg)
|
raise TypeError(msg)
|
||||||
|
|
||||||
def __getitem__(self, pargs):
|
def __getitem__(self, pargs):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue