From 86e156c3c5f331e3f169b941be2d9f72e7c8f000 Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Aug 19 2016 11:04:52 +0000 Subject: Remove forgotten print from DN.__str__ implementation These debug prints were forgotten there and should be removed, because str(DN) is often operation and we may save time with handling exceptions and printing unwanted debug Reviewed-By: David Kupka --- diff --git a/ipapython/dn.py b/ipapython/dn.py index 8585ee9..4ba741e 100644 --- a/ipapython/dn.py +++ b/ipapython/dn.py @@ -1145,12 +1145,7 @@ class DN(object): return self.RDN_type(*rdn, **{'raw': True}) def __str__(self): - try: - return dn2str(self.rdns) - except Exception as e: - print(len(self.rdns)) - print(self.rdns) - raise + return dn2str(self.rdns) def __repr__(self): return "%s.%s('%s')" % (self.__module__, self.__class__.__name__, self.__str__())