opentibiabr / canary

Canary Server 13.x for OpenTibia community.
https://docs.opentibiabr.com/
GNU General Public License v2.0
384 stars 637 forks source link

fix: crash on try gem grade upgrade greater than 3 #3151

Closed phacUFPE closed 3 days ago

phacUFPE commented 3 days ago

Description

Fixes the crash when trying to upgrade gem to a grade greater than 3

Behaviour

Actual

Crashes the server when trying to upgrade gem to a grade greater than 3.

Expected

Only logs the error when trying to upgrade gem to a grade greater than 3.

Type of change

Please delete options that are not relevant.

How Has This Been Tested

Test Configuration:

Checklist

sonarcloud[bot] commented 3 days ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud