Updating profile info works
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
from rich import print
|
||||
|
||||
from modules.menu.menu import menu
|
||||
from ..exceptions.pretty_exception import PrettyException
|
||||
|
||||
|
||||
def callback(f):
|
||||
def wrapper(*args, **kwargs):
|
||||
menu.pause()
|
||||
f(*args, **kwargs)
|
||||
try:
|
||||
f(*args, **kwargs)
|
||||
except Exception as e:
|
||||
print(PrettyException(e).pretty_exception)
|
||||
input()
|
||||
menu.resume()
|
||||
|
||||
return wrapper
|
||||
@@ -14,7 +21,11 @@ def async_callback(f):
|
||||
def wrapper(*args, **kwargs):
|
||||
import asyncio
|
||||
menu.pause()
|
||||
asyncio.run(f(*args, **kwargs))
|
||||
try:
|
||||
asyncio.run(f(*args, **kwargs))
|
||||
except Exception as e:
|
||||
print(PrettyException(e).pretty_exception)
|
||||
input()
|
||||
menu.resume()
|
||||
|
||||
return wrapper
|
||||
|
||||
Reference in New Issue
Block a user