diff options
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r-- | Lib/urllib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py index 82b5fb9..f60a841 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -134,7 +134,7 @@ class URLopener: for file in self.__tempfiles: try: self.__unlink(file) - except: + except OSError: pass del self.__tempfiles[:] if self.tempcache: @@ -1069,7 +1069,7 @@ def unquote(s): try: myappend(mychr(myatoi(item[:2], 16)) + item[2:]) - except: + except ValueError: myappend('%' + item) else: myappend('%' + item) |