Skip to content

Commit afbe2a0

Browse files
committed
Correct inappropriate NotImplementedError usage.
1 parent 78af481 commit afbe2a0

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

postgresql/clientparameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def x_pg_service(service_name, config):
505505
)
506506

507507
def x_pg_ldap(ldap_url, config):
508-
raise NotImplementedError("cannot resolve ldap URLs: " + str(ldap_url))
508+
raise Exception("cannot resolve ldap URLs")
509509

510510
default_x_callbacks = {
511511
'settings' : x_settings,

postgresql/types/geometry.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ def __str__(self):
9595
def parallel(self, ob):
9696
return self.slope == type(self)(ob).slope
9797

98-
def intersect(self, ob):
99-
raise NotImplementedError
100-
10198
def perpendicular(self, ob):
10299
return (self.slope / type(self)(ob).slope) == -1.0
103100

0 commit comments

Comments
 (0)