Skip to content

Commit

Permalink
Fix error showing non ascii chars
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Feb 14, 2022
1 parent f920aa9 commit 4305033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ec3
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ class Display:
@staticmethod
def display(msg):
Display.clean()
sys.stdout.write(str(msg) + "\n")
sys.stdout.write("%s\n" % msg)
sys.stdout.flush()

class ClusterStore:
Expand Down Expand Up @@ -719,7 +719,7 @@ class CmdLaunch:
for elem in resp.json()["uri-list"]:
vm_ids.append(os.path.basename(list(elem.values())[0]))
except Exception as e:
CLI.display("Error launching front-end: %s" % str(e), level=logging.ERROR)
CLI.display("Error launching front-end: %s" % e.message, level=logging.ERROR)
sys.exit(1)
CLI.display("Infrastructure successfully created with ID: %s" % infrId, alt=infrId)

Expand Down

0 comments on commit 4305033

Please sign in to comment.