-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,27 +6,37 @@ | |
# :license: BSD-3-Clause | ||
# | ||
|
||
__version__ = '1.1.7' | ||
__version__ = '1.1.8' | ||
__author__ = 'Sonu Kumar' | ||
__email__ = '[email protected]' | ||
|
||
from error_tracker.libs.mixins import * | ||
from error_tracker.libs.exception_formatter import * | ||
|
||
flaskInstalled = False | ||
try: | ||
import flask | ||
from error_tracker.flask import * | ||
from error_tracker.flask.utils import configure_scope as flask_scope | ||
|
||
flaskInstalled = True | ||
except ImportError: | ||
pass | ||
|
||
if flaskInstalled: | ||
from error_tracker.flask import * | ||
from error_tracker.flask.utils import configure_scope as flask_scope | ||
|
||
djangoInstalled = False | ||
try: | ||
import django | ||
|
||
djangoInstalled = True | ||
except ImportError as e: | ||
raise e | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
if djangoInstalled: | ||
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__ = [ | ||
# flask modules | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This causes django to be a hard requirement. Please update to
pass
.