Maybe print a message so that it doesn't fail silently, like
```python
print "Barcode %s cannot be converted to an integer." % barcode
```