<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 20, 2015 at 7:14 AM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
if one enters (note the white space)<br>
<br>
g.proj - w<br>
<br>
into the wxGUI cmd line, then Python gets unhappy with:<br>
<br>
Traceback (most recent call last):<br>
  File "/home/neteler/software/grass70/dist.x86_64-unknown-<br>
linux-gnu/gui/wxpython/gui_core/prompt.py", line 399, in<br>
OnKeyPressed<br>
<br>
self._runCmd(self.GetCurLine()[0].strip())<br>
  File "/home/neteler/software/grass70/dist.x86_64-unknown-<br>
linux-gnu/gui/wxpython/gui_core/prompt.py", line 118, in<br>
_runCmd<br>
<br>
self.promptRunCmd.emit(cmd=cmd)<br>
  File "/home/neteler/software/grass70/dist.x86_64-unknown-<br>
linux-gnu/etc/python/grass/pydispatch/signal.py", line 229,<br>
in emit<br>
<br>
dispatcher.send(signal=self, *args, **kwargs)<br>
  File "/home/neteler/software/grass70/dist.x86_64-unknown-<br>
linux-gnu/etc/python/grass/pydispatch/dispatcher.py", line<br>
349, in send<br>
<br>
**named<br>
  File "/home/neteler/software/grass70/dist.x86_64-unknown-<br>
linux-gnu/etc/python/grass/pydispatch/robustapply.py", line<br>
60, in robustApply<br>
<br>
return receiver(*arguments, **named)<br>
  File "/home/neteler/software/grass70/dist.x86_64-unknown-<br>
linux-gnu/gui/wxpython/gui_core/goutput.py", line 106, in<br>
<lambda><br>
<br>
self._gconsole.RunCmd(command=cmd))<br>
  File "/home/neteler/software/grass70/dist.x86_64-unknown-<br>
linux-gnu/gui/wxpython/core/gconsole.py", line 470, in<br>
RunCmd<br>
<br>
task = GUI(show=None).ParseCommand(command)<br>
  File "/home/neteler/software/grass70/dist.x86_64-unknown-<br>
linux-gnu/gui/wxpython/gui_core/forms.py", line 2363, in<br>
ParseCommand<br>
<br>
if option[1] == '-':<br>
IndexError<br>
:<br>
string index out of range<br>
<br>
Is there a way to catch that?<br></blockquote><div><br></div><div>Try r65975. </div><div><br></div><div>Cheers,</div><div><br></div><div>Anna</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
thanks<br>
Markus<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</blockquote></div><br></div></div>