Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
taux1c
GitHub Repository: taux1c/onlyfans-scraper
Path: blob/main/onlyfans_scraper/utils/decorators.py
961 views
1
from ..constants import debug
2
3
4
5
def debuging(func):
6
def wrapper(*args, **kwargs):
7
if debug:
8
print(f"Running {func.__name__}")
9
# The idea is to soon be able to print internals of the function and allow for tracebacks.
10
return func(*args, **kwargs)
11
12
return wrapper
13
14
15
16