Convert old style except blocks to except Exception as variable: blocks
[htsworkflow.git] / encode_submission / encode_find.py
index 7589f5487aef5ef85a6c4ec65072aa3d025ef5bc..60e0bee9b5700f8be2a58e7e45480dddf0bd0c6f 100644 (file)
@@ -566,7 +566,7 @@ def load_library_detail(model, libraryUrn):
         try:
             body = get_url_as_text(str(libraryUrn.uri), 'GET')
             rdfaParser.parse_string_into_model(model, body, libraryUrn.uri)
-        except httplib2.HttpLib2ErrorWithResponse, e:
+        except httplib2.HttpLib2ErrorWithResponse as e:
             LOGGER.error(str(e))
     elif len(results) == 1:
         pass  # Assuming that a loaded dataset has one record