saltstack/salt — pull request #3285 by s0undt3ch (2013-01-16 00:26:10+00:00)
Title: Use the warnings module to display the git version message.

This allows us to ignore the error:

```python
warnings.filterwarnings(
'ignore',
category=UserWarning,
module='salt.version'
)
```
Or, make it raise an exception:

```python
warnings.filterwarnings(
'error',
category=UserWarning,
module='salt.version'
)
```