mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 07:37:08 +00:00
Fix Python's idiotic syntax
This commit is contained in:
@@ -76,7 +76,7 @@ if __name__ == '__main__':
|
|||||||
if not lineNameInfo:
|
if not lineNameInfo:
|
||||||
if not pattern:
|
if not pattern:
|
||||||
print("ERROR! Missing final.p111.lineNameInfo in project configuration. Cannot import final P111")
|
print("ERROR! Missing final.p111.lineNameInfo in project configuration. Cannot import final P111")
|
||||||
throw Exception("Missing final.p111.lineNameInfo")
|
raise Exception("Missing final.p111.lineNameInfo")
|
||||||
else:
|
else:
|
||||||
print("WARNING! No `lineNameInfo` in project configuration (final.p111). You should add it to the settings.")
|
print("WARNING! No `lineNameInfo` in project configuration (final.p111). You should add it to the settings.")
|
||||||
rx = None
|
rx = None
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ if __name__ == '__main__':
|
|||||||
if not lineNameInfo:
|
if not lineNameInfo:
|
||||||
if not pattern:
|
if not pattern:
|
||||||
print("ERROR! Missing raw.p111.lineNameInfo in project configuration. Cannot import raw P111")
|
print("ERROR! Missing raw.p111.lineNameInfo in project configuration. Cannot import raw P111")
|
||||||
throw Exception("Missing raw.p111.lineNameInfo")
|
raise Exception("Missing raw.p111.lineNameInfo")
|
||||||
else:
|
else:
|
||||||
print("WARNING! No `lineNameInfo` in project configuration (raw.p111). You should add it to the settings.")
|
print("WARNING! No `lineNameInfo` in project configuration (raw.p111). You should add it to the settings.")
|
||||||
rx = None
|
rx = None
|
||||||
|
|||||||
Reference in New Issue
Block a user