Archaeopteryx Software, Inc.
Take Flight!Search

Home
Wing IDE
News
Support
About Us
Python
Open Source
Store

 Search:
 
 Advanced Search




[wingide-users] Strange behavior when raising my own exceptions

F. GEIGER fgeiger@datec.at
Tue, 2 Oct 2001 18:51:37 +0200


I run my app within Wing IDE. Within the app "custom" exceptions are
raise-ed. These exceptions are not caught.

What I get then is:

ENTERING WINGDB.PY
Runtime failure details:
Runtime failure details:
Runtime failure details:
Runtime failure details:
Runtime failure details:
-- Type return or enter to exit --


Then I run this app on a python prompt and I get:

Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-1999 Microsoft Corp.

C:\>d:

D:\>cd pyfl

D:\PyFL>cd computer

D:\PyFL\computer>file.py
Traceback (most recent call last):
  File "D:\PyFL\computer\file.py", line 425, in ?
    test()
  File "D:\PyFL\computer\file.py", line 417, in test
    file.delete()
  File "D:\PyFL\computer\file.py", line 297, in delete
    raise FileNotFoundError
__main__.FileNotFoundError

D:\PyFL\computer>


The definition of FileNotFoundError is:

class FileError(Exception): pass
class FileNotFoundError(FileError): pass


I use Wing IDE 1.1b7-2. Python is ActivePython 2.1.1.

Has this something to do with the new global hook for uncaught exceptions
which is intro'ed by 2.1.1?


Best regards
Franz GEIGER


--------------------------------------------------------
DATEC Datentechnik GmbH
	Software Development
	Retrieval Computing
A-6890 LUSTENAU, Schmiedgasse 7
Tel	+43 5577 630 04-0
Fax	+43 5577 630 04-40
Mobile
	+43 664 214 57 43
E-Mail
	fgeiger@datec.at
WWW	www.datec.at (in Partnerschaft mit Amazon.de)








Run by Mailman v 2.0.8


Copyright (c) 2000-2002, Archaeopteryx Software, Inc.
Legal Statements