From 36209bfc470d7aeda2c5bf6061543a5c27dcca32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan?= <75177329+ghrlt@users.noreply.github.com> Date: Fri, 1 Jul 2022 03:47:19 +0200 Subject: [PATCH 1/2] Update aterrors.py --- python_aternos/aterrors.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python_aternos/aterrors.py b/python_aternos/aterrors.py index f2b88b3..7c39495 100644 --- a/python_aternos/aterrors.py +++ b/python_aternos/aterrors.py @@ -54,3 +54,8 @@ class FileError(AternosError): """Raised when trying to execute a disallowed by Aternos file operation""" + + +class PermissionError(AternosError): + """Raised when trying to execute a non-allowed + command on a server (Think friends permissions)""" From 87fd6d6d57c92c12c14b02fc962f86f873e06370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan?= <75177329+ghrlt@users.noreply.github.com> Date: Fri, 1 Jul 2022 03:49:48 +0200 Subject: [PATCH 2/2] Update __init__.py --- python_aternos/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python_aternos/__init__.py b/python_aternos/__init__.py index 55bd15e..e1cb3f7 100644 --- a/python_aternos/__init__.py +++ b/python_aternos/__init__.py @@ -26,6 +26,7 @@ from .aterrors import ServerRunningError from .aterrors import ServerSoftwareError from .aterrors import ServerStorageError from .aterrors import FileError +from .aterrors import PermissionError from .atjsparse import exec, atob from .atjsparse import to_ecma5_function