abonarrigo621/CS112-Spring2012 — comment on commit eb579c10a49a4cbd5cb08a913f31c9ab4cd478c6
File:  line 0
By jrabbit:

Part | Points
------------- | -------------
base | 1
*Total* | 1

Passes tests. :sparkles:

```python

if w < 1 or h < 1 or type(w) != int or type(h) != int:
print "Error: Invalid Dimensions"
return
```

What you're doing is similar to the concept of [Exceptions.](http://docs.python.org/tutorial/errors.html) (other info: https://en.wikibooks.org/wiki/Python_Programming/Exceptions http://www.diveintopython.net/file_handling/index.html)