Skip to content

Commit c4ef697

Browse files
committed
Fix for newly discovered python 3 issue causing unprintable exceptions
1 parent 1ee1f92 commit c4ef697

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tuf/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,13 +332,13 @@ def __init__(self, mirror_errors):
332332
def __str__(self):
333333
all_errors = 'No working mirror was found:'
334334

335-
for mirror_url, mirror_error in self.mirror_errors.iteritems():
335+
for mirror_url, mirror_error in six.iteritems(self.mirror_errors):
336336
try:
337337
# http://docs.python.org/2/library/urlparse.html#urlparse.urlparse
338338
mirror_url_tokens = six.moves.urllib.parse.urlparse(mirror_url)
339339

340340
except:
341-
logging.exception('Failed to parse mirror URL: ' + repr(mirror_url))
341+
#logging.exception('Failed to parse mirror URL: ' + repr(mirror_url))
342342
mirror_netloc = mirror_url
343343

344344
else:

0 commit comments

Comments
 (0)