Blame gphotoframe-1.5.1-parseexif-fraction-zerodiv.patch
|
TASAKA Mamoru |
6f79e33 |
--- gphotoframe-1.5.1/lib/plugins/base/parseexif.py.zeroden2 2012-12-10 16:09:43.172332099 +0900
|
|
TASAKA Mamoru |
6f79e33 |
+++ gphotoframe-1.5.1/lib/plugins/base/parseexif.py 2012-12-10 17:29:10.830968144 +0900
|
|
TASAKA Mamoru |
6f79e33 |
@@ -28,7 +28,10 @@
|
|
TASAKA Mamoru |
6f79e33 |
value = str(value)
|
|
TASAKA Mamoru |
6f79e33 |
|
|
TASAKA Mamoru |
6f79e33 |
if key == 'fstop' or key == 'focallength':
|
|
TASAKA Mamoru |
6f79e33 |
- value = self._convert_from_fraction(value)
|
|
TASAKA Mamoru |
6f79e33 |
+ try:
|
|
TASAKA Mamoru |
6f79e33 |
+ value = self._convert_from_fraction(value)
|
|
TASAKA Mamoru |
6f79e33 |
+ except ZeroDivisionError:
|
|
TASAKA Mamoru |
6f79e33 |
+ continue
|
|
TASAKA Mamoru |
6f79e33 |
elif key == 'exposurebias' and value == '0':
|
|
TASAKA Mamoru |
6f79e33 |
continue
|
|
TASAKA Mamoru |
6f79e33 |
elif key == 'flash' and ('Off' in value or 'No' in value):
|