Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhayen committed Nov 5, 2020
1 parent 726feba commit a432fa6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion nuitka/build/static_src/MainProgram.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ extern void SvcLaunchService();
DWORD WINAPI SvcStartPython(LPVOID lpParam) {
IMPORT_EMBEDDED_MODULE("__main__");

return 0;
// TODO: Log exception and call ReportSvcStatus
if (ERROR_OCCURRED()) {
return 1;
} else {
return 0;
}
}
#endif

Expand Down
2 changes: 1 addition & 1 deletion nuitka/optimizations/TraceCollections.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ def getCompileTimeComputationResult(self, node, computation, description):
return new_node, change_tags, message

def getIteratorNextCount(self, iter_node):
return self.value_states.get(iter_node, None)
return self.value_states.get(iter_node)

def initIteratorValue(self, iter_node):
# TODO: More complex state information will be needed eventually.
Expand Down

0 comments on commit a432fa6

Please sign in to comment.