From 93ed72d5dc17edfc0794a91946d7c3e9c449dd3c Mon Sep 17 00:00:00 2001 From: Tiara Rodney Date: Sat, 16 Apr 2022 07:22:11 +0200 Subject: [PATCH] fix(model/paste): fix faulty condition --- src/httpaste/model/paste.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpaste/model/paste.py b/src/httpaste/model/paste.py index 3e030ef..534f9a8 100755 --- a/src/httpaste/model/paste.py +++ b/src/httpaste/model/paste.py @@ -94,7 +94,7 @@ def load(proto: Paste, backend: object) -> Optional[Paste]: if proto.sub and model.sub != shash( proto.sub, model.data_hash, - proto.pid) or not proto.sub and model.sub: + proto.pid) or (not proto.sub and model.sub): raise SubError('Paste not owned by user')