maestral.cli.common
#
Module Contents#
- maestral.cli.common.convert_api_errors(func)[source]#
Decorator that catches a MaestralApiError and prints a formatted error message to stdout before exiting. Calls
sys.exit(1)
after printing the error to stdout.- Parameters:
func (Callable[P, T]) –
- Return type:
Callable[P, T]
- maestral.cli.common.check_for_fatal_errors(m)[source]#
Checks the given Maestral instance for fatal errors such as revoked Dropbox access, deleted Dropbox folder etc. Prints a nice representation to the command line.
- Parameters:
m (MaestralProxy | Maestral) – Proxy to Maestral daemon or Maestral instance.
- Returns:
True in case of fatal errors, False otherwise.
- Return type: