Skip to content

Commit

Permalink
Merge pull request #50 from cs50/develop
Browse files Browse the repository at this point in the history
fixed exception bug
  • Loading branch information
dmalan authored Mar 17, 2018
2 parents d3dd3ec + 654f1d7 commit 3810aa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cli50
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import inflect
import os
import pkg_resources
import re
import shutil
import shutil
import signal
import subprocess
import sys
Expand Down Expand Up @@ -81,7 +81,7 @@ def main():
if args["login"]:
try:
login(args["login"])
except subprocess.CalledProcessError:
except:
sys.exit(1)
else:
sys.exit(0)
Expand Down Expand Up @@ -191,7 +191,7 @@ def login(container):
"--login"
])
except subprocess.CalledProcessError:
raise RuntimeError()
raise RuntimeError() from None


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
python_requires=">=3.6",
scripts=["cli50"],
url="https://github.com/cs50/cli50",
version="2.2.0"
version="2.2.1"
)

0 comments on commit 3810aa0

Please sign in to comment.