Skip to content

Commit

Permalink
Add current version to Sentry log.
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nu committed Nov 2, 2018
1 parent 8570899 commit 7220f6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ install_requires =
peewee
python-dateutil
keyring
borgbackup
apscheduler

[options.extras_require]
Expand Down
7 changes: 5 additions & 2 deletions src/vorta/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
import vorta.models
from vorta.application import VortaApp
from vorta.config import SETTINGS_DIR
from vorta._version import __version__


def main():
# Send crashes to Sentry
if not os.environ.get('NO_SENTRY'):
if not os.environ.get('NO_SENTRY', False):
import sentry_sdk
sentry_sdk.init("https://[email protected]/1311799")
sentry_sdk.init("https://[email protected]/1311799",
release=__version__)


# Init database
sqlite_db = peewee.SqliteDatabase(os.path.join(SETTINGS_DIR, 'settings.db'))
Expand Down

0 comments on commit 7220f6b

Please sign in to comment.