Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2020-02-11 13:51:33 +0300
committerJaime van Kessel <nallath@gmail.com>2020-02-11 13:51:33 +0300
commit70f22d04e43409f72fd167f34d23d9d9426b3cbf (patch)
tree28584b7f4fcc55bcaaae51870a37e20740f4d58d /cura_app.py
parent6f707f3149f4d36192703a8bcabc2a89507036c7 (diff)
Fix setting the environment for Sentry
Diffstat (limited to 'cura_app.py')
-rwxr-xr-xcura_app.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/cura_app.py b/cura_app.py
index 5184a5ab8b..a8fe708c5f 100755
--- a/cura_app.py
+++ b/cura_app.py
@@ -31,10 +31,11 @@ known_args = vars(parser.parse_known_args()[0])
if with_sentry_sdk:
sentry_env = "unknown" # Start off with a "IDK"
if hasattr(sys, "frozen"):
- sentry_env = "production" # A frozen build is a "real" distribution.
- elif ApplicationMetadata.CuraVersion == "master":
- sentry_env = "development"
- elif "beta" in ApplicationMetadata.CuraVersion or "BETA" in ApplicationMetadata.CuraVersion:
+ sentry_env = "production" # A frozen build has the posibility to be a "real" distribution.
+
+ if ApplicationMetadata.CuraVersion == "master":
+ sentry_env = "development" # Master is always a development version.
+ elif ApplicationMetadata.CuraVersion in ["beta", "BETA"]:
sentry_env = "beta"
try:
if ApplicationMetadata.CuraVersion.split(".")[2] == "99":