diff options
Diffstat (limited to 'slave/autotua/crypt/__init__.py')
-rw-r--r-- | slave/autotua/crypt/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slave/autotua/crypt/__init__.py b/slave/autotua/crypt/__init__.py index 0ee5073..b4600ad 100644 --- a/slave/autotua/crypt/__init__.py +++ b/slave/autotua/crypt/__init__.py @@ -24,7 +24,7 @@ class Crypto(object): def _validate_gpghome(self): try: gpghome = open(self.gpghome+'/secring.gpg') - except IOError, OSError: + except (IOError, OSError): raise Exception('"%s": Unable to use GPG homedir' % self.gpghome) finally: gpghome.close() |