aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rwxr-xr-xwqflask/wqflask/show_trait/SampleList.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/wqflask/wqflask/show_trait/SampleList.py b/wqflask/wqflask/show_trait/SampleList.py
index d196e722..060cb519 100755
--- a/wqflask/wqflask/show_trait/SampleList.py
+++ b/wqflask/wqflask/show_trait/SampleList.py
@@ -25,7 +25,11 @@ class SampleList(object):
self.sample_list = [] # The actual list
- self.get_attributes()
+ try:
+ self.get_attributes()
+ except Exception:
+ print("failed to get attributes")
+ self.attributes = {}
print("camera: attributes are:", pf(self.attributes))
@@ -243,4 +247,4 @@ def natural_sort_key(x):
x = int(x)
except ValueError:
pass
- return x \ No newline at end of file
+ return x