kfogel / OneTime

An open source encryption program that uses the "one-time pad" method.
http://red-bean.com/onetime
32 stars 14 forks source link

Cleaner IOError #16

Open ghost opened 8 years ago

ghost commented 8 years ago

Made OneTime output a cleaner error for when it can't access a file during reading (such as when it doesn't exist). Before it was just spewing out a Python IOError.

kfogel commented 8 years ago

Hi, @beardog108 -- thanks for the PR! Comments:

I ran the test suite with the changes, and it passes all current tests. It just needs a new test to verify that the error is produced when expected.