mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1162826 - Properly display full moz.build processing errors when empty KeyError or ValueError are thrown. r=mshal
This commit is contained in:
parent
2051207a14
commit
ae6f469d5e
@ -681,7 +681,7 @@ class BuildReaderError(Exception):
|
||||
self._print_exception(inner, s)
|
||||
|
||||
def _print_keyerror(self, inner, s):
|
||||
if inner.args[0] not in ('global_ns', 'local_ns'):
|
||||
if not inner.args or inner.args[0] not in ('global_ns', 'local_ns'):
|
||||
self._print_exception(inner, s)
|
||||
return
|
||||
|
||||
@ -740,7 +740,7 @@ class BuildReaderError(Exception):
|
||||
s.write('variables and try again.\n')
|
||||
|
||||
def _print_valueerror(self, inner, s):
|
||||
if inner.args[0] not in ('global_ns', 'local_ns'):
|
||||
if not inner.args or inner.args[0] not in ('global_ns', 'local_ns'):
|
||||
self._print_exception(inner, s)
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user