mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-12 07:10:15 +01:00
This commit is contained in:
@@ -1484,7 +1484,10 @@ Automatic Backupv2 failed for %s on %s.
|
||||
try:
|
||||
from loginSystem.models import Administrator
|
||||
admin = Administrator.objects.get(pk=1)
|
||||
config = json.loads(admin.config)
|
||||
try:
|
||||
config = json.loads(admin.config)
|
||||
except:
|
||||
config = {}
|
||||
|
||||
### probably need to add temporary dns resolver nameserver here - pending
|
||||
|
||||
|
||||
@@ -64,7 +64,10 @@ class virtualHostUtilities:
|
||||
|
||||
logging.CyberCPLogFileWriter.statusWriter(tempStatusPath, 'Setting up hostname,10')
|
||||
admin = Administrator.objects.get(pk=1)
|
||||
config = json.loads(admin.config)
|
||||
try:
|
||||
config = json.loads(admin.config)
|
||||
except:
|
||||
config = {}
|
||||
|
||||
### probably need to add temporary dns resolver nameserver here - pending
|
||||
|
||||
|
||||
Reference in New Issue
Block a user