Fix problem of attempting to sanitise non-existent options.

feature/documentation-builds-dirhtml
Isis Lovecruft 2013-03-07 04:44:42 +00:00 committed by Isis Lovecruft
parent 01861c03da
commit 745a581fea
1 changed files with 1 additions and 1 deletions

View File

@ -1016,7 +1016,7 @@ class GPG(object):
assert isinstance(use_agent, bool), "'use_agent' must be boolean"
self.use_agent = use_agent
self.options = _sanitise(options)
self.options = _sanitise(options) if options else None
## xxx TODO: hack the locale module away so we can use this on android
self.encoding = locale.getpreferredencoding()