Skip to content

Commit 9adcdf3

Browse files
Fixed Github Issue #516
1 parent cb3e7ff commit 9adcdf3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

segment/analytics/consumer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
# lower to leave space for extra data that will be added later, eg. "sentAt".
1515
BATCH_SIZE_LIMIT = 475000
1616

17+
1718
class FatalError(Exception):
1819
def __init__(self, message):
1920
self.message = message
21+
2022
def __str__(self):
2123
msg = "[Segment] {0})"
2224
return msg.format(self.message)
@@ -81,7 +83,7 @@ def upload(self):
8183
# mark items as acknowledged from queue
8284
for _ in batch:
8385
self.queue.task_done()
84-
return success
86+
return success
8587

8688
def next(self):
8789
"""Return the next batch of items to upload."""

0 commit comments

Comments
 (0)