Permalink
Browse files

importing ontologies

  • Loading branch information...
enriquepablo committed Mar 29, 2012
1 parent a8bd094 commit ac5f4e8576bd2649e7a818dc4b35affbeb0348cd
Showing with 3 additions and 2 deletions.
  1. +3 −2 nl/nlc/compiler.py
View
@@ -72,8 +72,9 @@ def p_import(p):
uri = p[2][1:-1]
try:
remote = urllib2.urlopen(uri)
- except:
- raise
+ except Exception, e:
+ raise ImportError('Could not import %s. '
+ 'Reason: %s' % (uri, str(e)))
buff = ''
for sen in remote.readlines():
sen = sen.strip()

0 comments on commit ac5f4e8

Please sign in to comment.