parent
68a11b03cc
commit
1fa361ada6
1 changed files with 1 additions and 1 deletions
|
|
@ -431,7 +431,7 @@ def get_exception(s):
|
||||||
return getattr(sys.modules[__name__], s)
|
return getattr(sys.modules[__name__], s)
|
||||||
|
|
||||||
def try_and_print(message='Trying...',
|
def try_and_print(message='Trying...',
|
||||||
function, cs='CS', ns='NS', other_results={},
|
function=None, cs='CS', ns='NS', other_results={},
|
||||||
catch_all=True, print_return=False, silent_function=True,
|
catch_all=True, print_return=False, silent_function=True,
|
||||||
indent=8, width=32, *args, **kwargs):
|
indent=8, width=32, *args, **kwargs):
|
||||||
"""Run function, print if successful or not, and return dict.
|
"""Run function, print if successful or not, and return dict.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue