Skip to content

Commit

Permalink
facebook: fix error_parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Nov 4, 2023
1 parent bdc9bd0 commit ab78f63
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions automon/integrations/facebook/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,12 @@ def error_parsing(error) -> tuple:
error_parsed = f'{error}'.splitlines()
error_parsed = [f'{x}'.strip() for x in error_parsed]
message = error_parsed[0]
session = error_parsed[1]
stacktrace = error_parsed[2:]
stacktrace = ' '.join(stacktrace)
session = None
stacktrace = None
if len(error_parsed) > 1:
session = error_parsed[1]
stacktrace = error_parsed[2:]
stacktrace = ' '.join(stacktrace)

return message, session, stacktrace

Expand Down

0 comments on commit ab78f63

Please sign in to comment.