OXIESEC PANEL
- Current Dir:
/
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clwizard
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
09/05/2025 09:34:06 AM
rwxr-xr-x
📄
__init__.py
270 bytes
06/05/2025 10:38:47 AM
rw-r--r--
📁
__pycache__
-
09/05/2025 09:32:32 AM
rwxr-xr-x
📁
cli
-
09/05/2025 09:31:01 AM
rwxr-xr-x
📁
config
-
09/05/2025 09:31:01 AM
rwxr-xr-x
📄
constants.py
1.44 KB
06/05/2025 10:38:47 AM
rw-r--r--
📄
exceptions.py
1.49 KB
06/05/2025 10:38:47 AM
rw-r--r--
📁
modules
-
09/05/2025 09:31:01 AM
rwxr-xr-x
📄
parser.py
3.29 KB
06/05/2025 10:38:47 AM
rw-r--r--
📄
utils.py
3.12 KB
06/05/2025 10:38:47 AM
rw-r--r--
📄
wizard.py
14.32 KB
06/05/2025 10:38:47 AM
rw-r--r--
Editing: exceptions.py
Close
#!/opt/cloudlinux/venv/bin/python3 -bb # coding=utf-8 # # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2021 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENCE.TXT # from clcommon import FormattedException class InstallationFailedException(Exception): """ Exception that should be raised to signal that some bad error happened during installation and user should review log files """ pass class PackageMissingError(FormattedException): """ Exception that should be raised when we are missing some required package for wizard work """ def __init__(self, package): super().__init__({ 'message': "This module requires '%(package)s' package, but it " "is missing in system. Please install it and try again.", 'context': {'package': package} }) class CancelModuleException(FormattedException): """ Error that is raised when it is not permitted to cancel module installation, e.g. module is installing at the moment. """ def __init__(self, module, status): super().__init__({ 'message': 'Module "%(module)s" can\'t be cancelled as it is in status "%(status)s".', 'context': {'module': module, 'status': status} }) class UserInterventionNeededError(Exception): """ Exception that is raised when it is impossible to install module (package) automatically """ pass