Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-01-06 11:22:18 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2009-01-06 11:22:18 (GMT)
commitbce3d51b196fafc2e873600679394fba507d5e72 (patch)
treec48189a6da7635e5cae6f6646f3507bf61207a6c
parent566423bab18983a8a0db81b4addfb6032e80e130 (diff)
Check the other encodings if the first one fails
-rw-r--r--src/sugar/mime.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sugar/mime.py b/src/sugar/mime.py
index ad08235..7d3b54b 100644
--- a/src/sugar/mime.py
+++ b/src/sugar/mime.py
@@ -229,7 +229,7 @@ def _file_looks_like_text(file_name):
unicode(sample, encoding)
return True
except Exception:
- return False
+ pass
return False