X7ROOT File Manager
Current Path:
/opt/cloudlinux/venv/lib/python3.11/site-packages/wmt/common
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
wmt
/
common
/
ðŸ“
..
📄
__init__.py
(270 B)
ðŸ“
__pycache__
📄
config.py
(4.66 KB)
📄
const.py
(1.06 KB)
📄
exceptions.py
(942 B)
📄
notification.py
(9.96 KB)
📄
report.py
(5.18 KB)
📄
service.py
(807 B)
📄
url_parser.py
(465 B)
📄
utils.py
(5.24 KB)
Editing: exceptions.py
#!/opt/cloudlinux/venv/bin/python3 from clcommon import FormattedException class WmtServiceControlException(FormattedException): def __init__(self, service_name, reason): super().__init__({ 'message': 'Error while handling service %(service_name)s: %(reason)s', 'context': { 'service_name': service_name, 'reason': reason } }) class WmtConfigException(FormattedException): def __init__(self, reason): super().__init__({ 'message': 'Error while handling config file: %(reason)s', 'context': { 'reason': reason } }) class WmtEmailException(FormattedException): def __init__(self, reason): super().__init__({ 'message': 'Error managing email notification: %(reason)s', 'context': { 'reason': reason } })
Upload File
Create Folder