File tree 1 file changed +5
-4
lines changed
py/selenium/webdriver/firefox
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright 2014 Software Freedom Conservancy
1
2
# Copyright 2008-2011 WebDriver committers
2
3
# Copyright 2008-2011 Google Inc.
3
4
#
@@ -340,8 +341,8 @@ def get_text(element):
340
341
manifest = f .read ()
341
342
else :
342
343
raise IOError ('Add-on path is neither an XPI nor a directory: %s' % addon_path )
343
- except (IOError , KeyError ), e :
344
- raise AddonFormatError , str (e ), sys .exc_info ()[2 ]
344
+ except (IOError , KeyError ) as e :
345
+ raise AddonFormatError ( str (e ), sys .exc_info ()[2 ])
345
346
346
347
try :
347
348
doc = minidom .parseString (manifest )
@@ -356,8 +357,8 @@ def get_text(element):
356
357
entry = node .nodeName .replace (em , "" )
357
358
if entry in details .keys ():
358
359
details .update ({entry : get_text (node )})
359
- except Exception , e :
360
- raise AddonFormatError , str (e ), sys .exc_info ()[2 ]
360
+ except Exception as e :
361
+ raise AddonFormatError ( str (e ), sys .exc_info ()[2 ])
361
362
362
363
# turn unpack into a true/false value
363
364
if isinstance (details ['unpack' ], basestring ):
You can’t perform that action at this time.
0 commit comments