From 658f976d4fe27618c939168ed91f3f0852e14245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Slab=C3=BD?= Date: Fri, 28 Jul 2017 13:15:18 +0200 Subject: [PATCH] Fix a Python3 specific variable scoping issue --- disco/bot/parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/disco/bot/parser.py b/disco/bot/parser.py index e9cabfc..4f7d267 100644 --- a/disco/bot/parser.py +++ b/disco/bot/parser.py @@ -139,9 +139,10 @@ class ArgumentSet(object): try: return typ(ctx, value) except Exception as e: + exc = e continue - raise e + raise exc def append(self, arg): """