mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-11 15:56:11 +01:00
p3
This commit is contained in:
@@ -39,10 +39,10 @@ class SetupConn:
|
||||
uid = pwd.getpwnam("postfix").pw_uid
|
||||
gid = grp.getgrnam("postfix").gr_gid
|
||||
os.chown(self.server_addr, uid, gid)
|
||||
os.chmod(self.server_addr, 0755)
|
||||
os.chmod(self.server_addr, 0o755)
|
||||
|
||||
logging.writeToFile('CyberPanel Email Policy Server Successfully started!')
|
||||
except BaseException, msg:
|
||||
except BaseException as msg:
|
||||
logging.writeToFile(str(msg) + ' [SetupConn.setup_conn]')
|
||||
|
||||
def start_listening(self):
|
||||
@@ -63,7 +63,7 @@ class SetupConn:
|
||||
connection, client_address = self.sock.accept()
|
||||
background = handle.HandleRequest(connection)
|
||||
background.start()
|
||||
except BaseException, msg:
|
||||
except BaseException as msg:
|
||||
logging.writeToFile(str(msg) + ' [SetupConn.start_listening]')
|
||||
|
||||
def __del__(self):
|
||||
|
||||
Reference in New Issue
Block a user