mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-13 18:44:14 +08:00
fix: Fix panic issue caused by 1pctl command
This commit is contained in:
parent
41bae1e636
commit
9b9ba2e66e
1 changed files with 3 additions and 1 deletions
|
|
@ -72,7 +72,9 @@ func StringDecrypt(text string) (string, error) {
|
|||
func StringDecryptWithKey(text, key string) (string, error) {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
global.LOG.Errorf("A panic occurred during string decrypt with key, error message: %v", r)
|
||||
if global.LOG != nil {
|
||||
global.LOG.Errorf("A panic occurred during string decrypt with key, error message: %v", r)
|
||||
}
|
||||
}
|
||||
}()
|
||||
if len(text) == 0 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue