Fix issue where a model can't be selected from list if l2s hasn't been uploaded yet
@@ -58,8 +58,11 @@ class Model(FSObject):
fout.write(content)
def get_l2s_content(self):
+ try:
with self.l2s_path.open(mode='r') as fin:
return fin.read()
+ except FileNotFoundError:
+ return 'No l2s file yet'
@property
def status(self):
