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: channels:
- "irc.freenode.net#woo-city-commits" - "irc.freenode.net#woo-city-commits"
- "irc.freenode.net#hy" - "irc.freenode.net#hy"
on_success: always on_success: change
on_failure: always on_failure: change
use_notice: true use_notice: false
# blacklist
branches:
except:
- debian

View File

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