Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

Commit

Permalink
Bug fix: Removed reference to args which is out of scope. Conditionin…
Browse files Browse the repository at this point in the history
…g now performed one level above. (#54)
  • Loading branch information
thomelane authored and scttl committed Oct 30, 2018
1 parent a888226 commit 324c67d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions rl_coach/coach.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,10 @@ def get_graph_manager_from_args(args: argparse.Namespace) -> 'GraphManager':

def display_all_presets_and_exit():
# list available presets
if args.list:
screen.log_title("Available Presets:")
for preset in sorted(list_all_presets()):
print(preset)
sys.exit(0)
screen.log_title("Available Presets:")
for preset in sorted(list_all_presets()):
print(preset)
sys.exit(0)

def expand_preset(preset):
if preset.lower() in [p.lower() for p in list_all_presets()]:
Expand Down

0 comments on commit 324c67d

Please sign in to comment.