From 2cfa0c6a7ceb997de860958157c6bab90f5b6138 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 24 Feb 2009 20:47:42 +0530 Subject: Explicitely use tuples for except: This behaviour will change in Python 3.0, so we should make sure it's explicit right now. --- slave/autotua/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slave/autotua/config.py') diff --git a/slave/autotua/config.py b/slave/autotua/config.py index 704a310..a168e52 100644 --- a/slave/autotua/config.py +++ b/slave/autotua/config.py @@ -47,7 +47,7 @@ try: exec('%s = %s' % (option, cfg.getboolean('global', option.lower()))) elif isinstance(value, int): exec('%s = %s' % (option, cfg.getint('global', option.lower()))) -except IOError, OSError: +except (IOError, OSError): print "!!! Unable to read %s/slave.cfg, ignoring..." % const.CONFIG_PATH if not AUTOTUA_MASTER: -- cgit v1.2.3-65-gdbad