You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If you run getStatus() more than one time then a FileNot Found Error Occurs.
Status : Wrong Answer
Traceback (most recent call last):
File "demo.py", line 12, in<module>ifr.getStatus() == "Wrong Answer":
File "/home/bhupesh/Desktop/CodeRunner/coderunner/coderunner.py", line 159, in getStatus
self.inp = self.__readStandardInput()
File "/home/bhupesh/Desktop/CodeRunner/coderunner/coderunner.py", line 81, in __readStandardInput
with open(self.inp, "r") as out:
FileNotFoundError: [Errno 2] No such file or directory: 'World'
To Reproduce
Steps to reproduce the behavior:
create an object instance & call getStatus 2 times
Describe the bug
If you run getStatus() more than one time then a FileNot Found Error Occurs.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
getStatus should return the status every time we call it.
Additional context
The reason it is happening is because
getStatus()
is actually submitting data twice to the judge server.The text was updated successfully, but these errors were encountered: