replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
Looking how to avoid duplication error I missed how simpler nhgrif's solution is. Eventually I used the following method that accepts any number of arguments and prints them before exiting.
def fatal_error(*messages):
for m in messages:
log.error(m)
app_exit(1)
Looking how to avoid duplication error I missed how simpler nhgrif's solution is. Eventually I used the following method that accepts any number of arguments and prints them before exiting.
def fatal_error(*messages):
for m in messages:
log.error(m)
app_exit(1)
lang-py