Program error reporting

But it will still report a mistake. What should I do?
error:
OSError: [Errno 2] No such file or directory: '/dev/i2c-1'