Added missing exception for invalid repository.
Merge pull request #29 from Zylius/exception_fix

Added missing exception for invalid repository.