mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
syntax change to exec
This commit is contained in:
parent
cc7673ccc8
commit
5a73b9afd4
@ -155,7 +155,7 @@ class Shell:
|
||||
# Command output
|
||||
print(repr(r))
|
||||
except SyntaxError:
|
||||
exec(self.command in self.globals)
|
||||
exec(str(self.command), self.globals)
|
||||
except:
|
||||
if hasattr (sys, 'last_type') and sys.last_type == SystemExit:
|
||||
console.quit()
|
||||
|
Loading…
Reference in New Issue
Block a user