Commits

Mark Gemmill committed 78738d8 Merge

Merged in fr710/bitbucket-cli/do-not-catch-exception (pull request #1)

Do not catch exception when creating the repository fails

Comments (0)

Files changed (1)

     scm_type = scm.detect_scm()
     if scm_type:
         reponame = os.path.basename(os.getcwd()).lower()
-        try:
-            create_repository(reponame, args.username, args.password,
-                              scm_type, args.private)
-        except Exception, e:
-            print e
+        create_repository(reponame, args.username, args.password,
+                          scm_type, args.private)
         scm.add_remote(args.protocol, args.username, reponame)
         scm.push_upstream()
     else: