Skip to content

Commit e238691

Browse files
author
James William Pye
committed
No longer referencing it via pg_exc.
Reported by Elvis. Probably should make a test for this.. =\
1 parent c75775e commit e238691

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

postgresql/types/io/stdlib_datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def interval_unpack(mds, timedelta = datetime.timedelta):
166166
months, days, seconds_ms = mds
167167
if months != 0:
168168
# XXX: Should this raise an exception?
169-
w = pg_exc.TypeConversionWarning(
169+
w = TypeConversionWarning(
170170
"datetime.timedelta cannot represent relative intervals",
171171
details = {
172172
'hint': 'An interval was unpacked with a non-zero "month" field.'

0 commit comments

Comments
 (0)