Re: problem with timezone parsing
Federico Di Gregorio <fog-NGVKUo/i/[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Organization | initd.org |
| Message-ID | <[email protected]> |
Hi Karsten, in the process of adding your code to extras.py I found some code I don't understand. Il giorno mer, 25/02/2009 alle 14.00 +0100, Karsten Hilbert ha scritto: > def _convert_ts_with_odd_tz(string_value, cursor): > try: > return DATETIME(string_value, cursor) > except (DataError,), exc: > if string_value is None: > raise I don't understand how string_value could be None here. If it was None before then DATETIME would have just returned None. It is safe to remove it or do you know something that I am missing? federico -- Federico Di Gregorio http://people.initd.org/fog Debian GNU/Linux Developer [email protected] INIT.D Developer fog-NGVKUo/i/[email protected] Best friends are often failed lovers. -- Me _______________________________________________ Psycopg mailing list Psycopg-IAPFreCvJWPBWskQ1e/[email protected] http://lists.initd.org/mailman/listinfo/psycopg
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkmrmUoACgkQvcCgrgZGjevMBACfXCfLAa3woD2cuE+95XnDGmgv HRoAoLxGuBpqkTfndvOcMVS2b+ogE67F =w6+J -----END PGP SIGNATURE-----