exit 1 if except
This commit is contained in:
		@ -111,6 +111,7 @@ class SemVer(object):
 | 
				
			|||||||
            raise Exception('Not merging into a main branch')
 | 
					            raise Exception('Not merging into a main branch')
 | 
				
			||||||
        if not self.get_version_type():
 | 
					        if not self.get_version_type():
 | 
				
			||||||
            raise Exception('No git flow branch found')
 | 
					            raise Exception('No git flow branch found')
 | 
				
			||||||
 | 
					        if push:
 | 
				
			||||||
            self.setup_git_user()
 | 
					            self.setup_git_user()
 | 
				
			||||||
        self.version_repo()
 | 
					        self.version_repo()
 | 
				
			||||||
        if push:
 | 
					        if push:
 | 
				
			||||||
@ -125,6 +126,7 @@ def main():
 | 
				
			|||||||
        SemVer().run(push=args.push)
 | 
					        SemVer().run(push=args.push)
 | 
				
			||||||
    except Exception as e:
 | 
					    except Exception as e:
 | 
				
			||||||
        print(e)
 | 
					        print(e)
 | 
				
			||||||
 | 
					        exit(1)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == '__main__':
 | 
					if __name__ == '__main__':
 | 
				
			||||||
    try: main()
 | 
					    try: main()
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user