Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/volumestoolbar.py
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-07-13 19:35:35 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-07-13 19:35:35 (GMT)
commit73781a7d9766cf26cb435d9be1037b6a016513bd (patch)
tree963f9e132b7b97f250890932b7987f3f524543fd /volumestoolbar.py
parentf343a03d6c4f1b65ad7129dec74f24f00a2260e2 (diff)
Tolerate entries without mtime nor mountpoint properties.
Diffstat (limited to 'volumestoolbar.py')
-rw-r--r--volumestoolbar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/volumestoolbar.py b/volumestoolbar.py
index 8854c42..28f64cd 100644
--- a/volumestoolbar.py
+++ b/volumestoolbar.py
@@ -291,7 +291,7 @@ class VolumeButton(RadioToolButton):
""" Copy a dropped entry to this volume
"""
jobject = datastore.get(selection_data.data)
- if jobject.metadata['mountpoint'] == self._volume_id:
+ if jobject.metadata.has_key('mountpoint') and jobject.metadata['mountpoint'] == self._volume_id:
return
jobject.object_id = None