Skip to content

Commit

Permalink
Minor cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
fake-name committed Jan 25, 2021
1 parent 5dd3ca6 commit 1700ed4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/modbus
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,10 @@ def main():
args = parser.parse_args()

clr.init()
try:

try:
mainLogger = logging.getLogger() # Main logger



if args.verbose:
mainLogger.setLevel(logging.DEBUG)
else:
Expand All @@ -104,6 +102,7 @@ def main():

finally:
# restore stdout/stderr if colorama has modified them (mostly on windows)
# Leaving this out doesn't seem to hurt anything, but they say to call deinit, so we call deinit.
clr.deinit()

main()

0 comments on commit 1700ed4

Please sign in to comment.