From 5b2e6ba7d4f71e9e11ed8cecc5d67a83d162ce35 Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Wed, 6 Jul 2016 21:18:07 +0900 Subject: [PATCH] Fix attribute error --- src/xdgurl.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/xdgurl.py b/src/xdgurl.py index f5bc0f5..0314ce6 100644 --- a/src/xdgurl.py +++ b/src/xdgurl.py @@ -393,10 +393,7 @@ def main(): try: core.execute(); except Exception as e: - error_message = str(e) - if e.message: - error_message = e.message - message = execute_text + ' failed\n' + error_message + message = execute_text + ' failed\n' + str(e) print(message) if sys.version_info.major >= 3: tkinter.messagebox.showerror(program, info_text + '\n\n' + message) -- GitLab