Skip to content

Commit

Permalink
Avoid repeated prompt text
Browse files Browse the repository at this point in the history
  • Loading branch information
joelostblom committed May 31, 2021
1 parent 6da8c66 commit 683f879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions canvascli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ def connect_to_canvas(self):
click.echo('\nConnecting to canvas...')
self.api_token = os.environ.get("CANVAS_PAT")
if self.api_token is None:
click.echo('Paste your canvas API token and press enter:')
self.api_token = getpass.getpass()
self.api_token = getpass.getpass(
'Paste your canvas API token and press enter:')
self.canvas = Canvas(self.api_url, self.api_token)
return

Expand Down

0 comments on commit 683f879

Please sign in to comment.