mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 01:35:28 +01:00
Comment callback
This commit is contained in:
parent
197818c4ac
commit
bfad335495
@ -168,6 +168,9 @@ class ServerInstance:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def callback(called_func):
|
def callback(called_func):
|
||||||
|
# Usage of @callback on method
|
||||||
|
# definition to run a webhook check
|
||||||
|
# on method completion
|
||||||
def wrapper(*args, **kwargs):
|
def wrapper(*args, **kwargs):
|
||||||
res = None
|
res = None
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user