From c906ec59ca43a3500b6a68a218b305dfd3c9a7f2 Mon Sep 17 00:00:00 2001 From: srz_zumix Date: Fri, 14 May 2021 09:19:19 +0900 Subject: [PATCH] fix bug (#64) * fix bug * up version * fix --- wandbox/__init__.py | 2 +- wandbox/wrapper.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wandbox/__init__.py b/wandbox/__init__.py index 40867cd..e222f4f 100644 --- a/wandbox/__init__.py +++ b/wandbox/__init__.py @@ -1,5 +1,5 @@ __author__ = 'srz_zumix' -__version__ = '0.9.33' +__version__ = '0.9.34' __copyright__ = '2014-2021 %s ' % __author__ __license__ = """ diff --git a/wandbox/wrapper.py b/wandbox/wrapper.py index 4bb6556..f09800e 100644 --- a/wandbox/wrapper.py +++ b/wandbox/wrapper.py @@ -116,11 +116,11 @@ def find_compilers(self, list_json, language, compiler): return find def find_compiler(self, list_json, language, compiler): - compiler = self.find_compilers(list_json, language, compiler) - if len(compiler) != 1: + compiler_list = self.find_compilers(list_json, language, compiler) + if len(compiler_list) != 1: raise Exception('Detected multiple compilers. Please specify so that it becomes one. --language=' + str(language) + ' --compiler=' + str(compiler)) - return compiler[0] + return compiler_list[0] def get_template(self, name, retry, retry_wait): return Wandbox.Call(lambda : Wandbox.GetTemplate(name), retry, retry_wait)