Skip to content

Commit ab249ec

Browse files
committed
Revert back to regular string formatting for Python 3.5
I can't believe this shit wouldn't let go :)
1 parent 1deb0e2 commit ab249ec

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

juju/application.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ async def refresh(
629629
charm_url_origin_result = await app_facade.GetCharmURLOrigin(application=self.name)
630630
if charm_url_origin_result.error is not None:
631631
err = charm_url_origin_result.error
632-
raise JujuError(f'{err.code} : {err.message}')
632+
raise JujuError("%s : %s" % (err.code, err.message))
633633
charm_url = switch or charm_url_origin_result.url
634634
origin = charm_url_origin_result.charm_origin
635635

@@ -642,7 +642,8 @@ async def refresh(
642642
charm_name = parsed_url.name
643643

644644
if parsed_url.schema is None:
645-
raise JujuError(f'A ch: or cs: schema is required for application refresh, given : {str(parsed_url)}')
645+
raise JujuError("A ch: or cs: schema is required for application "
646+
"refresh, given : %s " % str(parsed_url))
646647

647648
if revision is not None:
648649
origin.revision = revision

0 commit comments

Comments
 (0)