Skip to content

Commit

Permalink
Avoid an overeager import
Browse files Browse the repository at this point in the history
  • Loading branch information
jleclanche committed Aug 7, 2017
1 parent be92e52 commit 78d665e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions djstripe/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
from doc_inherit import class_doc_inherit
from stripe.error import StripeError, InvalidRequestError

import traceback as exception_traceback

from . import settings as djstripe_settings
from . import webhooks
from .enums import SourceType, SubscriptionStatus
Expand Down Expand Up @@ -1074,11 +1072,12 @@ class EventProcessingException(models.Model):

@classmethod
def log(cls, data, exception, event):
from traceback import format_exc
cls.objects.create(
event=event,
data=data or "",
message=str(exception),
traceback=exception_traceback.format_exc()
traceback=format_exc()
)

def __str__(self):
Expand Down

0 comments on commit 78d665e

Please sign in to comment.