mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-16 10:49:47 +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":
|
||||
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"
|
||||
try:
|
||||
if ApplicationMetadata.CuraVersion.split(".")[2] == "99":
|
||||
|
Loading…
x
Reference in New Issue
Block a user