Merge pull request #6854 from gdhameeja/Fix-6822
Check invalid operations for -k
This commit is contained in:
		
						commit
						c26bbdfaf0
					
				| 
						 | 
					@ -112,5 +112,5 @@ def matchkeyword(colitem, keywordexpr):
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
        return eval(keywordexpr, {}, mapping)
 | 
					        return eval(keywordexpr, {}, mapping)
 | 
				
			||||||
    except SyntaxError:
 | 
					    except Exception:
 | 
				
			||||||
        raise UsageError("Wrong expression passed to '-k': {}".format(keywordexpr))
 | 
					        raise UsageError("Wrong expression passed to '-k': {}".format(keywordexpr))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue