Skip to content

Commit 79a55b2

Browse files
committed
remove unused decorator
1 parent 2087a84 commit 79a55b2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

arctic/decorators.py

-10
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,6 @@ def f_retry(*args, **kwargs):
6666
return f_retry
6767

6868

69-
def dump_bad_documents(*document):
70-
"""
71-
Dump bad documents to disk
72-
"""
73-
_id = str(document[0]['_id'])
74-
with open('/tmp/mongo_debug_' + str(os.getpid()) + '_' + _id + '_' + str(datetime.now()), 'a') as f:
75-
for d in document:
76-
f.write(str(d) + '\n')
77-
78-
7969
def _handle_error(f, e, retry_count, **kwargs):
8070
if retry_count > _MAX_RETRIES:
8171
logger.error('Too many retries %s [%s], raising' % (f.__name__, e))

0 commit comments

Comments
 (0)