Skip to content

Commit

Permalink
refactoring: error.org
Browse files Browse the repository at this point in the history
Signed-off-by: Armin Wieser <armin.wieser@gmail.com>
  • Loading branch information
awieser committed Dec 18, 2011
1 parent b321eb4 commit ae31d27
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion filenametimestamps/memacs-filenametimestamps.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def main():
# do parsing
args = parser.parse_args()

handle_logging(args.verbose)
handle_logging(args.verbose,args.outputfile)
logging.debug("args specified:")
logging.debug(args)

Expand Down Expand Up @@ -123,3 +123,10 @@ def main():
main()
except KeyboardInterrupt:
logging.info("Received KeyboardInterrupt")
except SystemExit:
# if we get an sys.exit() do exit!
pass
except:
error_lines = traceback.format_exc().splitlines()
logging.error("\n ".join(map(str,error_lines)))
raise # re raise exception

0 comments on commit ae31d27

Please sign in to comment.