Fix logging NameError

This commit is contained in:
croneter 2017-09-06 13:52:55 +02:00
parent b555df1061
commit 6dfed36dbe

View file

@ -46,7 +46,7 @@ if __name__ == "__main__":
# Start the context menu # Start the context menu
ContextMenu() ContextMenu()
except Exception as error: except Exception as error:
log.exception(error) log.error(error)
import traceback import traceback
log.exception("Traceback:\n%s" % traceback.format_exc()) log.error("Traceback:\n%s" % traceback.format_exc())
raise raise