Skip to content

Commit

Permalink
COSMIT: Code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Wilhelm authored and Florian Wilhelm committed Mar 5, 2015
1 parent 2df8082 commit fb1f493
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pyscaffold/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def project(args):
if not os.path.exists(args.project):
raise RuntimeError("Project {project} does not"
" exist!".format(project=args.project))
read_config_error = False
for read_config in [read_setup_py, read_setup_cfg]:
try:
args = read_config(args)
Expand All @@ -149,9 +148,6 @@ def project(args):
else:
break
else:
read_config_error = True

if read_config_error:
raise RuntimeError("Could not update {project}. Was it generated "
"with PyScaffold?".format(project=args.project))
return args

0 comments on commit fb1f493

Please sign in to comment.