Work around strange Python anomaly
Apparently, `True` is both an instance of `int` and `bool`, which is a change and is very strange. Instead flip the conditional here.
This commit is contained in:
		| @@ -93,14 +93,14 @@ def finish(success=True, data=None, formatter=None): | ||||
|         else: | ||||
|             echo(CLI_CONFIG, data) | ||||
|  | ||||
|     # Allow passing | ||||
|     if isinstance(success, int): | ||||
|         exit(success) | ||||
|  | ||||
|     # Allow passing raw values if not a bool | ||||
|     if isinstance(success, bool): | ||||
|         if success: | ||||
|             exit(0) | ||||
|         else: | ||||
|             exit(1) | ||||
|     else: | ||||
|         exit(success) | ||||
|  | ||||
|  | ||||
| def version(ctx, param, value): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user