From 7220f6bea713622440b24a772de8a53b9d4177cc Mon Sep 17 00:00:00 2001 From: Manu Date: Sat, 3 Nov 2018 00:33:37 +0800 Subject: [PATCH] Add current version to Sentry log. --- setup.cfg | 1 - src/vorta/__main__.py | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.cfg b/setup.cfg index 36aa9bf0a..ea78cb676 100644 --- a/setup.cfg +++ b/setup.cfg @@ -37,7 +37,6 @@ install_requires = peewee python-dateutil keyring - borgbackup apscheduler [options.extras_require] diff --git a/src/vorta/__main__.py b/src/vorta/__main__.py index 8525b1355..9d855b07e 100644 --- a/src/vorta/__main__.py +++ b/src/vorta/__main__.py @@ -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://a4a23df3e44743d5b5c5f06417a9a809@sentry.io/1311799") + sentry_sdk.init("https://a4a23df3e44743d5b5c5f06417a9a809@sentry.io/1311799", + release=__version__) + # Init database sqlite_db = peewee.SqliteDatabase(os.path.join(SETTINGS_DIR, 'settings.db'))