mirror of
https://github.com/frida/frida-python.git
synced 2026-11-07 09:35:57 -10:00
Use new except syntax
This commit is contained in:
1 parent
8f5cca32f4
commit
c5b7077a40
1 file changed
+2
-2
@@ -63,7 +63,7 @@ class Capture(NSObject):
|
||||
})
|
||||
script.on('message', self._onScriptMessage)
|
||||
script.load()
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
if session is not None:
|
||||
try:
|
||||
session.detach()
|
||||
@@ -93,7 +93,7 @@ class Capture(NSObject):
|
||||
pool = NSAutoreleasePool.alloc().init()
|
||||
try:
|
||||
script.post(message)
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
print "Failed to post to script:", e
|
||||
del pool
|
||||
|
||||
|
||||
Reference in new issue
Block a user