aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Tarasov2015-04-18 18:43:54 +0300
committerArtem Tarasov2015-05-07 17:13:20 +0300
commit92a47463b73c25a9a5cffc6caaea696d628cca3b (patch)
treeb37761443fcfabe3811a3ebbb6bfdd87a97b3e09
parentde670c307c8f4fcb4758c89fb2b2454e833ecdc8 (diff)
downloadgenenetwork2-92a47463b73c25a9a5cffc6caaea696d628cca3b.tar.gz
allow for attribute table to not exist
-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