Updating travis; exceptions.

This commit is contained in:
Paul R. Tagliamonte 2013-04-10 21:44:23 -04:00
parent 65db83d1ff
commit 1adf64839a
2 changed files with 17 additions and 6 deletions

View File

@ -16,6 +16,11 @@ notifications:
channels:
- "irc.freenode.net#woo-city-commits"
- "irc.freenode.net#hy"
on_success: always
on_failure: always
use_notice: true
on_success: change
on_failure: change
use_notice: false
# blacklist
branches:
except:
- debian

View File

@ -129,9 +129,12 @@ class HyASTCompiler(object):
# another HyCompileError!
raise
except Exception as e:
raise HyCompileError(exception=e,
start_line=getattr(e, "start_line", 0),
start_column=getattr(e, "start_column", 0))
if isinstance(e, HyError):
raise HyCompileError(
exception=e,
start_line=getattr(e, "start_line", 0),
start_column=getattr(e, "start_column", 0))
raise
raise HyCompileError(
"Unknown type - `%s' - %s" % (str(type(tree)), tree))
@ -630,6 +633,9 @@ class HyASTCompiler(object):
if type(call) != ast.Call:
raise TypeError("kwapplying a non-call")
if type(kwargs) != HyDict:
raise TypeError("kwapplying with a non-dict")
call.keywords = [ast.keyword(arg=ast_str(x),
value=self.compile(kwargs[x])) for x in kwargs]