Skip to content

Commit 803c83d

Browse files
ramnesShaneHarvey
authored andcommitted
Fix multiline exceptions (mongodb#328)
1 parent e9eb307 commit 803c83d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pymongo/cursor.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -543,14 +543,14 @@ def __getitem__(self, index):
543543
skip = 0
544544
if index.start is not None:
545545
if index.start < 0:
546-
raise IndexError("Cursor instances do not support"
546+
raise IndexError("Cursor instances do not support "
547547
"negative indices")
548548
skip = index.start
549549

550550
if index.stop is not None:
551551
limit = index.stop - skip
552552
if limit < 0:
553-
raise IndexError("stop index must be greater than start"
553+
raise IndexError("stop index must be greater than start "
554554
"index for slice %r" % index)
555555
if limit == 0:
556556
self.__empty = True
@@ -563,7 +563,7 @@ def __getitem__(self, index):
563563

564564
if isinstance(index, integer_types):
565565
if index < 0:
566-
raise IndexError("Cursor instances do not support negative"
566+
raise IndexError("Cursor instances do not support negative "
567567
"indices")
568568
clone = self.clone()
569569
clone.skip(index + self.__skip)

0 commit comments

Comments
 (0)