Skip to content

Commit

Permalink
Fix admin check - die
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Jan 22, 2024
1 parent 86d1c41 commit 0d68c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/omero_annotation_scripts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _configure(self, parser: Parser) -> None:
def upload(self, args):
conn = BlitzGateway(client_obj=self.ctx.conn(args))
if not conn.isAdmin():
self.ctx.out("You need to be an Admin to upload scripts")
self.ctx.die(567123, "You need to be an Admin to upload scripts")
script_path = os.path.dirname(os.path.abspath(__file__))
scripts_dir = os.path.join(os.path.dirname(script_path), "scripts")

Expand Down

0 comments on commit 0d68c80

Please sign in to comment.