Skip to content

Commit

Permalink
Fix exception for unsupported operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Stimberg committed Jul 8, 2013
1 parent a2e2b9b commit 2af5661
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brian2/parsing/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def _get_value_from_expression(expr, namespace, specifiers):
else:
raise SyntaxError('Unknown unary operation ' + op)
else:
raise SyntaxError('Unsupported operation '+expr.__class__)
raise SyntaxError('Unsupported operation ' + str(expr.__class__))


def parse_expression_unit(expr, namespace, specifiers):
Expand Down

0 comments on commit 2af5661

Please sign in to comment.