Package duplicity :: Module util
[hide private]
[frames] | no frames]

Module util

source code

Miscellaneous utilities.

Functions [hide private]
 
exception_traceback(limit=50)
@return A string representation in typical Python format of the currently active/raised exception.
source code
 
escape(string) source code
 
maybe_ignore_errors(fn)
Execute fn.
source code
Function Details [hide private]

maybe_ignore_errors(fn)

source code 
Execute fn. If the global configuration setting ignore_errors is set to True, catch errors and log them but do continue (and return None).
Parameters:
  • fn - A callable. @return Whatever fn returns when called, or None if it failed and ignore_errors is true.