diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-03-15 12:35:58 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-03-15 12:35:58 +0100 |
commit | 729424befd80ed34d486cf995499ce7a8bd0806f (patch) | |
tree | 2c2858bd9217cd35a8badfd23fcf6eddf4066591 /mediagoblin/db/util.py | |
parent | 007ac2e72075b730719cab4e6b3af5d03f6f9473 (diff) | |
download | mediagoblin-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