aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mediagoblin/media_types/image/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mediagoblin/media_types/image/models.py b/mediagoblin/media_types/image/models.py
index b02c41d3..64be20c0 100644
--- a/mediagoblin/media_types/image/models.py
+++ b/mediagoblin/media_types/image/models.py
@@ -41,6 +41,11 @@ class ImageData(Base):
gps_direction = Column(Float)
def get_original_date(self):
+ """
+ Get the original date and time from the EXIF information. Returns
+ either a datetime object or None (if anything goes wrong)
+ """
+
import datetime
try:
# Try wrapped around all since exif_all might be none,