]> granicus.if.org Git - esp-idf/commitdiff
ldgen: catch exception with python3 compatible style
authorRenz Christian Bagaporo <renz@espressif.com>
Wed, 21 Nov 2018 08:58:22 +0000 (16:58 +0800)
committerRenz Christian Bagaporo <renz@espressif.com>
Thu, 22 Nov 2018 14:09:43 +0000 (22:09 +0800)
Closes https://github.com/espressif/esp-idf/issues/2720

tools/ldgen/ldgen.py

index bb70950d110ddc501f505c1ea7974ffee9d2e012..ca12fe8e87e87c65b9964a93201305df2d383741 100755 (executable)
@@ -91,8 +91,7 @@ def main():
         script_model.fill(mapping_rules, sdkconfig)
 
         script_model.write(output_file)
-
-    except Exception, e:
+    except Exception as e:
         print("linker script generation failed for %s\nERROR: %s" % (input_file.name, e.message))
         # Delete the file so the entire build will fail; and not use an outdated script.
         os.remove(output_file.name)