Skip to content

Commit

Permalink
Optional flask (#13)
Browse files Browse the repository at this point in the history
* Optional dependencies.

* Optional dependencies.

* new release version

* optional flask issue
  • Loading branch information
sonus21 committed Oct 4, 2020
1 parent 9a57ace commit a662057
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions error_tracker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,26 @@
# :license: BSD-3-Clause
#

__version__ = '1.1.6'
__version__ = '1.1.7'
__author__ = 'Sonu Kumar'
__email__ = 'sonunitw12@gmail.com'

from error_tracker.libs.mixins import *
from error_tracker.flask import *
from error_tracker.django import *
from error_tracker.flask.utils import configure_scope as flask_scope
from error_tracker.django.apps import DjangoErrorTracker
from error_tracker.django.utils import capture_message, track_exception, configure_scope, capture_exception

try:
import flask
from error_tracker.flask import *
from error_tracker.flask.utils import configure_scope as flask_scope
except ImportError:
pass
try:
import django
from error_tracker.django import *
from error_tracker.django.apps import DjangoErrorTracker
from error_tracker.django.utils import capture_message, track_exception, configure_scope, capture_exception
except ImportError:
pass

from error_tracker.libs.exception_formatter import *

__all__ = [
Expand Down

0 comments on commit a662057

Please sign in to comment.