fix: error when no template is provided to initCmd
This commit is contained in:
		
							parent
							
								
									8f547e93d5
								
							
						
					
					
						commit
						5a926057a7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -241,7 +241,7 @@ def initCmd(args: Args): | ||||||
|     template = args.consumeArg() |     template = args.consumeArg() | ||||||
| 
 | 
 | ||||||
|     if template is None: |     if template is None: | ||||||
|         template = "default" |         raise RuntimeError("No template was provided") | ||||||
| 
 | 
 | ||||||
|     repo = const.DEFAULT_REPO_TEMPLATES if not "repo" in args.opts else args.opts["repo"] |     repo = const.DEFAULT_REPO_TEMPLATES if not "repo" in args.opts else args.opts["repo"] | ||||||
|     list = "list" in args.opts |     list = "list" in args.opts | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue