Skip to content

Commit

Permalink
Don't use bare excepts. Appease pycodestyle/PEP8.
Browse files Browse the repository at this point in the history
  • Loading branch information
gruns committed Feb 21, 2017
1 parent c93c4b0 commit 54424d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions furl/furl.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ def lget(l, index, default=None):
def attemptstr(o):
try:
return str(o)
except:
except Exception:
return o


def utf8(o, default=_absent):
try:
return o.encode('utf8')
except:
except Exception:
return o if default is _absent else default


Expand Down Expand Up @@ -1512,7 +1512,7 @@ def present(v):
self.fragment.query.load(fragment_args)
if fragment_separator is not _absent:
self.fragment.separator = fragment_separator
except:
except Exception:
self.load(original_url)
raise

Expand Down

0 comments on commit 54424d3

Please sign in to comment.