[Python-modules-team] Bug#573417: forgetSQL raises string exceptions in three places (not supported in python 2.6)

Morten Werner Forsbring werner at debian.org
Thu Mar 11 11:15:01 UTC 2010

Package: forgetsql
Version: 0.5.1-10
Severity: normal
Tags: patch upstream
Owner: Morten Werner Forsbring <werner at debian.org>


this was sent to the nav-users at uninett.no mailinglist. It should be
fixed for the package in Debian as well.

- Werner

Morten Brekkevold <morten.brekkevold at uninett.no> writes:

> Hi all,
> forgetSQL is an unmaintained piece of shi^H^Hoftware that NAV versions
> up to 3.5 depend on.  While we have removed this dependency from the
> coming NAV 3.6, some will experience warnings when running NAV under
> Python 2.5, and outright failures on Python 2.6, due to problems with
> the forgetSQL module.
> The forgetSQL module raises string exceptions in three places, and
> these are deprecated in Python 2.5, and not supported in 2.6.  You may
> see error messages such as these:
>  /var/lib/python-support/python2.5/forgetSQL.py:212: DeprecationWarning: raising a string exception is deprecated
>    raise "NotFound"
> or
>  File "/var/lib/python-support/python2.6/forgetSQL.py", line 212, in __new__
>    raise "NotFound"
>  TypeError: exceptions must be classes or instances, not str
> I'm attaching a quick forgetSQL patch I've written to overcome these
> problems until NAV 3.6 has reached a stable release.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: forgetsql-string-exception.patch
Type: text/x-diff
Size: 919 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20100311/8822f3e3/attachment.patch>

More information about the Python-modules-team mailing list