Skip to content

Commit 5ef204d

Browse files
author
sreeder
committed
print a message when retrieving method so we can debug the issue of duplicating existing methods
1 parent 8384026 commit 5ef204d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

odmtools/odmservices/series_service.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,8 +787,11 @@ def method_exists(self, m):
787787
try:
788788
# result = self._edit_session.query(Method).filter_by(description=m.description).one()
789789
result = self._edit_session.query(Method).filter(Method.description.like(m.description.encode("latin-1"))).first()
790+
print "successful method retrieval!"
791+
print Method
790792
return True
791-
except:
793+
except Exception as ex:
794+
print ex
792795
return False
793796

794797
def variable_exists(self, v):

0 commit comments

Comments
 (0)