Skip to content

Commit

Permalink
Fixed UnboundLocalError for exc in setup.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-maier committed Oct 5, 2016
1 parent 96e8d20 commit 381e509
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,12 +512,14 @@ def run(self):
try:
setup(**args)
except Fault as exc:
if tries == 0:
if tries > 0:
print("Warning: Retrying setup() because %s was raised: %s" %
(exc.__class__.__name__, exc))
continue
else:
raise
else:
break
print("Warning: Retrying setup() because %s was raised: %s" %
(exc.__class__.__name__, exc))

if 'install' in sys.argv or 'develop' in sys.argv:
build_moftab(_VERBOSE)
Expand Down

0 comments on commit 381e509

Please sign in to comment.