NO-JIRA: fix syntax for older python versions (and consistent with style used in other modules in this package)
diff --git a/qpid/connection08.py b/qpid/connection08.py
index 7694114..1b79442 100644
--- a/qpid/connection08.py
+++ b/qpid/connection08.py
@@ -61,12 +61,13 @@
 
   def close(self):
     try:
-      self.sock.shutdown(SHUT_RDWR)
-    except socket.error, e:
-      if (e.errno == errno.ENOTCONN):
-        pass
-      else:
-        raise
+      try:
+        self.sock.shutdown(SHUT_RDWR)
+      except socket.error, e:
+        if (e.errno == errno.ENOTCONN):
+          pass
+        else:
+          raise
     finally:
       self.sock.close()