This commit is contained in:
Usman Nasir
2019-12-10 15:09:10 +05:00
parent d0dc397463
commit 5e7aeeb597
231 changed files with 1698 additions and 1697 deletions

View File

@@ -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):