Catch IOError for when the device file doesn't exist or the user doesn't have
permission to write to the device.
1 file changed