##// END OF EJS Templates
wireproto: use a proper exception instead of `assert False`...
Augie Fackler -
r34731:6be26400 default
parent child Browse files
Show More
@@ -325,7 +325,8 b' class wirepeer(repository.legacypeer):'
325 continue
325 continue
326 keytype = gboptsmap.get(key)
326 keytype = gboptsmap.get(key)
327 if keytype is None:
327 if keytype is None:
328 assert False, 'unexpected'
328 raise error.ProgrammingError(
329 'Unexpectedly None keytype for key %s' % key)
329 elif keytype == 'nodes':
330 elif keytype == 'nodes':
330 value = encodelist(value)
331 value = encodelist(value)
331 elif keytype in ('csv', 'scsv'):
332 elif keytype in ('csv', 'scsv'):
General Comments 0
You need to be logged in to leave comments. Login now