Merge pull request #33 from ghrlt/main

Adding PermissionError handling
This commit is contained in:
Andrey 2022-07-01 09:12:38 +04:00 committed by GitHub
commit efe67f85da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -26,6 +26,7 @@ from .aterrors import ServerRunningError
from .aterrors import ServerSoftwareError from .aterrors import ServerSoftwareError
from .aterrors import ServerStorageError from .aterrors import ServerStorageError
from .aterrors import FileError from .aterrors import FileError
from .aterrors import PermissionError
from .atjsparse import exec, atob from .atjsparse import exec, atob
from .atjsparse import to_ecma5_function from .atjsparse import to_ecma5_function

View file

@ -54,3 +54,8 @@ class FileError(AternosError):
"""Raised when trying to execute a disallowed """Raised when trying to execute a disallowed
by Aternos file operation""" by Aternos file operation"""
class PermissionError(AternosError):
"""Raised when trying to execute a non-allowed
command on a server (Think friends permissions)"""