Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 6626cecff85980ca6670e2db52708102c9676bcb
Author: Miroslav Suchý <miroslav(a)suchy.cz>
Date: Tue Jan 14 16:53:40 2014 +0100
correct previous commit
move exception to correct place and also catch general exception
---------------------------------------------------------------
.../coprs/views/coprs_ns/coprs_general.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
b/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
index 54208ab..1973ae5 100644
--- a/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
+++ b/coprs_frontend/coprs/views/coprs_ns/coprs_general.py
@@ -330,13 +330,13 @@ def generate_repo_file(username, coprname, chroot):
with_builds=True).one()
except sqlalchemy.orm.exc.NoResultFound:
return page_not_found('Project {0}/{1} does not exist'.format(username,
coprname))
- except exceptions.MalformedArgumentException, e:
- return page_not_found("%s" % e)
try:
mock_chroot = coprs_logic.MockChrootsLogic.get_from_name(chroot).one()
except sqlalchemy.orm.exc.NoResultFound:
return page_not_found('Chroot %s does not exist' % chroot)
+ except ValueError, e:
+ return page_not_found("%s" % e)
url = ''
for build in copr.builds: