freemt commited on
Commit
9754a84
·
1 Parent(s): 28886f8

Update longer (500 chars) cmd

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -45,15 +45,13 @@ def process(command):
45
  split(command), encoding="utf8", stdout=-1, stderr=-1
46
  ) # sp.PIPE: -1
47
  out, err = proc.communicate()
48
- success = True
 
 
49
  except Exception as e:
50
  out, err = "", str(e)
51
- success = False
52
-
53
- if out.strip() and err.strip():
54
- return out, err
55
- else:
56
- return "No output, that's all we know.", None
57
 
58
  # quick test altair altair-save tooltip
59
  # from PIL import Image
 
45
  split(command), encoding="utf8", stdout=-1, stderr=-1
46
  ) # sp.PIPE: -1
47
  out, err = proc.communicate()
48
+ # success = True
49
+ return f"[{out}]", f"[{err}]"
50
+
51
  except Exception as e:
52
  out, err = "", str(e)
53
+ # success = False
54
+ return f"[{out}]", f"[{err}]"
 
 
 
 
55
 
56
  # quick test altair altair-save tooltip
57
  # from PIL import Image