Exceptions & Errors

This module contains oodles of exceptions that might be thrown or subclassed elsewhere.

Base Exceptions

exception dput.exceptions.DputError

Most basic dput error. All other Exceptions must inherit from this when it is sensable to do so.

exception dput.exceptions.UploadException

Thrown when there’s an error uploading, or creating an uploader. Usually thrown by a subclass of the dput.uploader.AbstractUploader

exception dput.exceptions.HookException

Thrown when there’s an error checking, or creating a checker. Usually thrown by a checker invoked by dput.checker.run_hooks.

Configuration File Errors

exception dput.exceptions.DputConfigurationError

Errors in the parsing or retrieving of configuration files should raise an instance of this, or a subclass thereof.

exception dput.exceptions.NoSuchConfigError

Thrown when dput can not find a Configuration file or block that is requested.

exception dput.exceptions.InvalidConfigError

Config file was loaded properly, but it was missing part of it’s required fields.

exception dput.exceptions.NoSuchConfigError

Thrown when dput can not find a Configuration file or block that is requested.

Misc Errors

exception dput.exceptions.ChangesFileException(message, gpg_stderr=None)

Thrown when there’s an error processing / verifying a .changes file (most often via the dput.changes.Changes object)

exception dput.exceptions.NoSuchHostError

Thrown when the network doesn’t allow us to connect to a host.