Skip to content

Commit

Permalink
fix bug (#64)
Browse files Browse the repository at this point in the history
* fix bug

* up version

* fix
  • Loading branch information
srz-zumix authored May 14, 2021
1 parent e31417b commit c906ec5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion wandbox/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__author__ = 'srz_zumix'
__version__ = '0.9.33'
__version__ = '0.9.34'

__copyright__ = '2014-2021 %s ' % __author__
__license__ = """
Expand Down
6 changes: 3 additions & 3 deletions wandbox/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c906ec5

Please sign in to comment.