It is a good practice to put some explaining message into exception:
```python
raise ValueError("{}:{} is not a valid time".format(refresh_hour, refresh_min))
```