Updating travis; exceptions.
This commit is contained in:
parent
65db83d1ff
commit
1adf64839a
11
.travis.yml
11
.travis.yml
@ -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
|
||||||
|
@ -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]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user