Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

catch only Exception closing #1

  • Loading branch information...
commit ba996b5de4a9cc58766f3418ca8ea4adab28cc5a 1 parent 65d3da4
Jehiah Czebotar jehiah authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  bitly_api/bitly_api.py
  2. +2 −2 bitly_api/bitly_http.py
2  bitly_api/bitly_api.py
View
@@ -326,6 +326,6 @@ def _call(self, host, method, params, secret=None, timeout=5000):
return data
except BitlyError:
raise
- except:
+ except Exception:
raise BitlyError(None, sys.exc_info()[1])
4 bitly_api/bitly_http.py
View
@@ -57,10 +57,10 @@ def makePycurlHttp(url, timeout, user_agent):
buffer.close()
http_status_code = curl.getinfo(pycurl.HTTP_CODE)
curl.close()
- except:
+ except Exception:
try:
curl.close()
- except:
+ except Exception:
pass
raise
return http_status_code, result
Please sign in to comment.
Something went wrong with that request. Please try again.