diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-01 23:53:07 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-01 23:53:07 +0100 |
commit | 004a80bfaad38f9400e8aebcb8f980353a232295 (patch) | |
tree | 1e786d2d14a3040767aac237982544b74a9567cb /pyload/webui/filters.py | |
parent | Fix previous merge (diff) | |
download | pyload-004a80bfaad38f9400e8aebcb8f980353a232295.tar.xz |
PEP-8, Python Zen, refactor and reduce code (thx FedeG)
Diffstat (limited to 'pyload/webui/filters.py')
-rw-r--r-- | pyload/webui/filters.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/webui/filters.py b/pyload/webui/filters.py index c5e9447ee..527b18446 100644 --- a/pyload/webui/filters.py +++ b/pyload/webui/filters.py @@ -6,7 +6,7 @@ quotechar = "::/" try: from os.path import relpath -except: +except Exception: from posixpath import curdir, sep, pardir def relpath(path, start=curdir): """Return a relative version of a path""" @@ -27,7 +27,7 @@ def quotepath(path): return path.replace("../", quotechar) except AttributeError: return path - except: + except Exception: return "" def unquotepath(path): @@ -35,7 +35,7 @@ def unquotepath(path): return path.replace(quotechar, "../") except AttributeError: return path - except: + except Exception: return "" def path_make_absolute(path): |