This commit is contained in:
Kovid Goyal 2019-09-29 20:19:06 +05:30
parent 98fbdadd5c
commit 7647c265e1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -154,7 +154,7 @@ document.title = 'compiler initialized';
self.runJavaScript(src, QWebEngineScript.ApplicationWorld, self.compilation_done) self.runJavaScript(src, QWebEngineScript.ApplicationWorld, self.compilation_done)
while self.working: while self.working:
self.spin_loop() self.spin_loop()
if self.compiler_result is null: if self.compiler_result is null or self.compiler_result is None:
raise CompileFailure('Failed to compile rapydscript code with error: ' + '\n'.join(self.errors)) raise CompileFailure('Failed to compile rapydscript code with error: ' + '\n'.join(self.errors))
write_cache = self.compiler_result[1] write_cache = self.compiler_result[1]
with open(cache_path, 'wb') as f: with open(cache_path, 'wb') as f: