Shuffle things around to make unit tests work

This commit is contained in:
Erik Johnston 2016-09-22 11:08:12 +01:00
parent 1168cbd54d
commit a61e4522b5
2 changed files with 16 additions and 15 deletions
synapse

View file

@ -56,7 +56,7 @@ def get_domain_from_id(string):
try:
return string.split(":", 1)[1]
except IndexError:
raise SynapseError(400, "Invalid ID: %r", string)
raise SynapseError(400, "Invalid ID: %r" % (string,))
class DomainSpecificString(