comparison sat_frontends/jp/cmd_blog.py @ 3342:9dbe2517d131

jp (blog/edit): fixed edition when syntax is specified
author Goffi <goffi@goffi.org>
date Sat, 15 Aug 2020 20:29:44 +0200
parents 384283adcce1
children be6d91572633
comparison
equal deleted inserted replaced
3341:13b91b7280bc 3342:9dbe2517d131
119 "Syntax", "Composition", "value", self.profile 119 "Syntax", "Composition", "value", self.profile
120 ) 120 )
121 else: 121 else:
122 self.default_syntax_used = False 122 self.default_syntax_used = False
123 try: 123 try:
124 syntax = await self.host.bridge.syntaxGet(self.current_syntax) 124 syntax = await self.host.bridge.syntaxGet(self.args.syntax)
125
126 self.current_syntax = self.args.syntax = syntax 125 self.current_syntax = self.args.syntax = syntax
127 except Exception as e: 126 except Exception as e:
128 if e.classname == "NotFound": 127 if e.classname == "NotFound":
129 self.parser.error(_(f"unknown syntax requested ({self.args.syntax})")) 128 self.parser.error(_(f"unknown syntax requested ({self.args.syntax})"))
130 else: 129 else: