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-17 19:01:38 +0300
committerJaime van Kessel <nallath@gmail.com>2020-02-17 19:01:38 +0300
commit238dd733ea9a9cca9b3ee7adcd0aa3c45efb7379 (patch)
tree3e6ba201eacfae680cf3b3ddc0360cbec2c25259 /cura_app.py
parent5af4acc49ede72cff654cda951c67d6de343cb23 (diff)
parente52dc56a64186812d48ca4b7d7e318ff24401142 (diff)
Merge branch '4.5' of github.com:Ultimaker/Cura
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 d1f7ad1c46..ab52404b4d 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":