check if repo is defined

https://github.com/buildtimetrend/python-lib/issues/17