From e4e7df2ffcc83ba1cf01f4d6ae54fdbbd90c7c09 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 9 May 2017 03:12:12 +0200 Subject: Improved error handling, MySQL error messages included --- butler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'butler.py') diff --git a/butler.py b/butler.py index 362213d..7019b61 100644 --- a/butler.py +++ b/butler.py @@ -22,7 +22,7 @@ def main(): client = Goniec(load_config('goniec')) client.send(files) except Exception as e: - print str(e) + print 'ERROR: %s: %s' % (type(e).__name__, str(e)) if nowait: raw_input('Press any key to continue...') -- cgit v1.2.3