Spaces:
Sleeping
Sleeping
Update app.py
Browse filesAdded exception logs
app.py
CHANGED
@@ -73,8 +73,10 @@ def run_cppcheck(source_code: str):
|
|
73 |
res = subprocess.run(cmd, capture_output=True, text=True)
|
74 |
try:
|
75 |
issues = json.loads(res.stderr)
|
|
|
76 |
except json.JSONDecodeError:
|
77 |
issues = []
|
|
|
78 |
return tf.name, issues
|
79 |
|
80 |
def build_prompt(filename: str, issues: list):
|
|
|
73 |
res = subprocess.run(cmd, capture_output=True, text=True)
|
74 |
try:
|
75 |
issues = json.loads(res.stderr)
|
76 |
+
print(issues)
|
77 |
except json.JSONDecodeError:
|
78 |
issues = []
|
79 |
+
print("Exception...")
|
80 |
return tf.name, issues
|
81 |
|
82 |
def build_prompt(filename: str, issues: list):
|