mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-24 06:39:38 +08:00
Fix setting of sentry_env for betas
This commit is contained in:
parent
3d399672d0
commit
f8326d2a6e
@ -53,7 +53,7 @@ if with_sentry_sdk:
|
|||||||
|
|
||||||
if ApplicationMetadata.CuraVersion == "master":
|
if ApplicationMetadata.CuraVersion == "master":
|
||||||
sentry_env = "development" # Master is always a development version.
|
sentry_env = "development" # Master is always a development version.
|
||||||
elif ApplicationMetadata.CuraVersion in ["beta", "BETA"]:
|
elif "beta" in ApplicationMetadata.CuraVersion or "BETA" in ApplicationMetadata.CuraVersion:
|
||||||
sentry_env = "beta"
|
sentry_env = "beta"
|
||||||
try:
|
try:
|
||||||
if ApplicationMetadata.CuraVersion.split(".")[2] == "99":
|
if ApplicationMetadata.CuraVersion.split(".")[2] == "99":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user