Skip to content

Commit

Permalink
coala: Instantiate default log printer
Browse files Browse the repository at this point in the history
Otherwise log_printer in line 62 may be undefined.
  • Loading branch information
sils committed Mar 18, 2015
1 parent 2ac47aa commit 4ca6cf4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coala
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import sys

from coalib.output.printers.ConsolePrinter import ConsolePrinter
from coalib.misc.StringConstants import StringConstants
from coalib.processes.SectionExecutor import SectionExecutor
from coalib.settings.SectionManager import SectionManager
Expand All @@ -24,6 +25,7 @@ from coalib.misc.i18n import _


if __name__ == "__main__":
log_printer = ConsolePrinter()
try:
did_nothing = True
yielded_results = False
Expand Down

3 comments on commit 4ca6cf4

@Udayan12167
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need a comment like before? Incase section manager fails

@sils
Copy link
Member Author

@sils sils commented on 4ca6cf4 Mar 19, 2015 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Udayan12167
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool ack.

Please sign in to comment.