Skip to content

Commit ca0e6f7

Browse files
authored
Merge pull request #2 from 3181538941/patch-1
Update code
2 parents f32c877 + f1bdaa6 commit ca0e6f7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

binpythonfull.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ def binpython_welcome_text():
123123
print("BINPython " + ver + "-" + releases_ver + " (Python Version:" + platform.python_version() + ")By:XINGYUJIE https://github.com/xingyujie/binpython[Running on " + platform.platform() + " " + platform.version() + "]")
124124
print('Type "about", "help", "copyright", "credits" or "license" for more information.')
125125
def binpython_shell():
126-
try:
127-
while True:
126+
while True:
127+
try:
128128
pycmd=input(">>> ")
129129
if pycmd in globals().keys():
130130
print(globals()[pycmd])
@@ -157,13 +157,13 @@ def binpython_shell():
157157
""")
158158
elif pycmd == 'license':
159159
print("Type license() to see the full license text")
160-
try:
160+
else:
161161
exec(pycmd)
162-
except Exception as err:
163-
print(err)
164-
except KeyboardInterrupt:
165-
print("EXIT!")
166-
sys.exit()
162+
except KeyboardInterrupt:
163+
print("EXIT!")
164+
sys.exit()
165+
except Exception as err:
166+
print(err)
167167

168168

169169
#def

0 commit comments

Comments
 (0)