Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit 8c89e45

Browse files
committed
Return event ID as result of capture
1 parent 61969ac commit 8c89e45

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

raven/base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,9 @@ def get_ident(self, result):
232232
>>> result = client.capture(**kwargs)
233233
>>> ident = client.get_ident(result)
234234
"""
235-
return '$'.join(result)
235+
warnings.warn('Client.get_ident is deprecated. The event ID is now returned as the result of capture.',
236+
DeprecationWarning)
237+
return result
236238

237239
def get_handler(self, name):
238240
return self.module_cache[name](self)
@@ -502,7 +504,7 @@ def capture(self, event_type, data=None, date=None, time_spent=None,
502504

503505
self.send(**data)
504506

505-
return (data.get('event_id'),)
507+
return data['event_id']
506508

507509
def is_enabled(self):
508510
"""

0 commit comments

Comments
 (0)