Updating travis; exceptions.
This commit is contained in:
parent
65db83d1ff
commit
1adf64839a
11
.travis.yml
11
.travis.yml
@ -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
|
||||
|
@ -129,9 +129,12 @@ class HyASTCompiler(object):
|
||||
# another HyCompileError!
|
||||
raise
|
||||
except Exception as e:
|
||||
raise HyCompileError(exception=e,
|
||||
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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user