Skip to content

Commit

Permalink
cov
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelSquires committed Jun 12, 2024
1 parent 340afb5 commit c19f4b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions synapse/lib/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4124,18 +4124,18 @@ async def confirmLayerEditPerms(self, user, gateiden, delete=False):
if not allow_forms or not allow_props:
async for byts, abrv in s_coro.pause(self.propabrv.slab.scanByFull(db=self.propabrv.name2abrv)):
form, prop = s_msgpack.un(byts)
if form is None:
if form is None: # pragma: no cover
continue

if self.layrslab.prefexists(abrv, db=self.byprop):
if prop and not allow_props:
realform = self.core.model.form(form)
if not realform:
if not realform: # pragma: no cover
mesg = f'Invalid form: {form}'
raise s_exc.NoSuchForm(mesg=mesg, form=form)

realprop = realform.prop(prop)
if not realprop:
if not realprop: # pragma: no cover
mesg = f'Invalid prop: {form}:{prop}'
raise s_exc.NoSuchProp(mesg=mesg, form=form, prop=prop)

Expand Down

0 comments on commit c19f4b5

Please sign in to comment.