summaryrefslogtreecommitdiff
path: root/yaksh/cpp_code_evaluator.py
diff options
context:
space:
mode:
authoradityacp2018-05-24 12:37:54 +0530
committeradityacp2018-06-07 14:50:47 +0530
commit0adb0d3b79980544bb5a724ce3b106dbd8e01c9c (patch)
tree624a5947dc960a0283b606c244aeb470e94c3a57 /yaksh/cpp_code_evaluator.py
parent97b657edc2a323f832c81f0e34ce5761bd21f7e9 (diff)
downloadonline_test-0adb0d3b79980544bb5a724ce3b106dbd8e01c9c.tar.gz
online_test-0adb0d3b79980544bb5a724ce3b106dbd8e01c9c.tar.bz2
online_test-0adb0d3b79980544bb5a724ce3b106dbd8e01c9c.zip
Further pep8 changes
Diffstat (limited to 'yaksh/cpp_code_evaluator.py')
-rw-r--r--yaksh/cpp_code_evaluator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/cpp_code_evaluator.py b/yaksh/cpp_code_evaluator.py
index aab4995..7ab06ec 100644
--- a/yaksh/cpp_code_evaluator.py
+++ b/yaksh/cpp_code_evaluator.py
@@ -151,7 +151,7 @@ class CppCodeEvaluator(BaseEvaluator):
err = "{0} \n {1}".format(err, e.split(":", 1)[1])
else:
err = "{0} \n {1}".format(err, e)
- except:
+ except Exception:
err = "{0} \n {1}".format(err, main_err)
else:
err = "Compilation Error:"
@@ -162,7 +162,7 @@ class CppCodeEvaluator(BaseEvaluator):
err = "{0} \n {1}".format(err, e.split(":", 1)[1])
else:
err = "{0} \n {1}".format(err, e)
- except:
+ except Exception:
err = "{0} \n {1}".format(err, stdnt_stderr)
return success, err, mark_fraction