diff options
author | Artem Tarasov | 2015-04-18 18:43:54 +0300 |
---|---|---|
committer | Artem Tarasov | 2015-05-07 17:13:20 +0300 |
commit | 92a47463b73c25a9a5cffc6caaea696d628cca3b (patch) | |
tree | b37761443fcfabe3811a3ebbb6bfdd87a97b3e09 /wqflask | |
parent | de670c307c8f4fcb4758c89fb2b2454e833ecdc8 (diff) | |
download | genenetwork2-92a47463b73c25a9a5cffc6caaea696d628cca3b.tar.gz |
allow for attribute table to not exist
Diffstat (limited to 'wqflask')
-rwxr-xr-x | wqflask/wqflask/show_trait/SampleList.py | 8 |
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 |