summaryrefslogtreecommitdiff
path: root/tools/make-mime.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/make-mime.py')
-rwxr-xr-xtools/make-mime.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/make-mime.py b/tools/make-mime.py
index 12727126..f6a72044 100755
--- a/tools/make-mime.py
+++ b/tools/make-mime.py
@@ -22,7 +22,7 @@ def file_content_type(text):
try:
filename, content_type = text.split(":", 1)
return (open(filename, 'r'), filename, content_type.strip())
- except:
+ except ValueError:
raise argparse.ArgumentError("Invalid value for %r" % (text))