aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/util.py
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2012-03-15 12:35:58 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2012-03-15 12:35:58 +0100
commit729424befd80ed34d486cf995499ce7a8bd0806f (patch)
tree2c2858bd9217cd35a8badfd23fcf6eddf4066591 /mediagoblin/db/util.py
parent007ac2e72075b730719cab4e6b3af5d03f6f9473 (diff)
downloadmediagoblin-729424befd80ed34d486cf995499ce7a8bd0806f.tar.lz
mediagoblin-729424befd80ed34d486cf995499ce7a8bd0806f.tar.xz
mediagoblin-729424befd80ed34d486cf995499ce7a8bd0806f.zip
Fix media display for no media_data row in sql.
If there is no media_data row for the current media (for whatever reason, there might be good ones), let MediaEntry.media_data not raise an exception but just return None. The exif display part now handles this by checking whether .media_data.exif is defined (None has no attribute exif, so it's undefined, all fine).
Diffstat (limited to 'mediagoblin/db/util.py')
0 files changed, 0 insertions, 0 deletions