Re: Please wait with release
[email protected] Mon, 24 Jan 2005 13:47:18 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Quoting Bram Moolenaar <[email protected]>: > > Lars Ivar Igesund wrote: > > Also, doing something like > > > > @if not _top.DDEPCHECK: > > > > crashes if the variable isn't set using version 1.070 and 1.072 in Gentoo > > > Linux. The error message: > > > > Aap: Internal Error > > Aap: Traceback (most recent call last): > > File "/usr/share/aap/Process.py", line 1163, in Process > > exec script_string in recdict, recdict > > File "<string>", line 18, in ? > > File "/usr/share/aap/Scope.py", line 48, in __getattr__ > > return self.data[key] > > KeyError: 'DDEPCHECK' > > > > Aap: Aborted > > > > Python version 2.3.4, compiled with GCC 3.3.4. Linux kernel 2.6.9. > > > > The workaround is simple in this case, but this shouldn't happen? > > Why should this not happen? You can use get() if the variable might not > be defined. Well, I wasn't expecting it... It's a long time since I tried the functionality in question on Windows, but I can't remember that this happened. Maybe I didn't try this exact scenario. Anyway, I'll put it in along with the rest of the fixes. Lars Ivar Igesund ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl