Skip to content

Commit 076e192

Browse files
thiesmoellerbjoernrennfanz
authored andcommitted
Merged PR 21062: Prepare pypylon 2.3.0 release
- Date 2023-08-30 - Add binding for VersionInfo - Add bindings to device factory methods on transport layers - Fix usage of Exception.GetDescription() in the samples
2 parents 1fd8160 + 1e46deb commit 076e192

11 files changed

+16
-15
lines changed

changelog.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
Version 2.x.y
2-
- Date 2023-XX-YY
1+
Version 2.3.0
2+
- Date 2023-08-30
33
- Add binding for VersionInfo
4-
- add bindings to device factory methods on transport layers
4+
- Add bindings to device factory methods on transport layers
5+
- Fix usage of Exception.GetDescription() in the samples
56
Version 2.2.0
67
- Date 2023-06-14
78
- Integrate macos build for arm64

samples/grab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
except genicam.GenericException as e:
6666
# Error handling.
6767
print("An exception occurred.")
68-
print(e.GetDescription())
68+
print(e)
6969
exitCode = 1
7070

7171
sys.exit(exitCode)

samples/grabcameraevents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ def OnImageGrabbed(self, camera, grabResult):
142142

143143
except genicam.GenericException as e:
144144
# Error handling.
145-
print("An exception occurred.", e.GetDescription())
145+
print("An exception occurred.", e)

samples/grabchunkimage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,5 @@ def OnImageGrabbed(self, camera, grabResult):
131131

132132
except genicam.GenericException as e:
133133
# Error handling.
134-
print("An exception occurred.", e.GetDescription())
134+
print("An exception occurred.", e)
135135
exitCode = 1

samples/grabmultiplecameras.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393

9494
except genicam.GenericException as e:
9595
# Error handling
96-
print("An exception occurred.", e.GetDescription())
96+
print("An exception occurred.", e)
9797
exitCode = 1
9898

9999
# Comment the following two lines to disable waiting on exit.

samples/grabusinggrabloopthread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ def OnImageGrabbed(self, camera, grabResult):
6565
break
6666
except genicam.GenericException as e:
6767
# Error handling.
68-
print("An exception occurred.", e.GetDescription())
68+
print("An exception occurred.", e)

samples/guiimagewindow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141
except genicam.GenericException as e:
4242
# Error handling.
4343
print("An exception occurred.")
44-
print(e.GetDescription())
44+
print(e)

samples/helloworld.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def main():
3232

3333
return 0
3434
except genicam.GenericException as e:
35-
print("Error ", e.GetDescription())
35+
print("Error ", e)
3636

3737
return -1
3838

samples/startup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353

5454
except genicam.GenericException as e:
5555
# Error handling.
56-
print("An exception occurred.", e.GetDescription())
56+
print("An exception occurred.", e)
5757

5858
camera.Close()

samples/utilityimageformatconverter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ def show_image(image, message):
5454
targetImage.Save(pylon.ImageFileFormat_Png, filename)
5555

5656
except genicam.GenericException as e:
57-
print("Could not grab an image: ", e.GetDescription())
57+
print("Could not grab an image: ", e)
5858
except genicam.GenericException as e:
59-
print("An exception occurred. ", e.GetDescription())
59+
print("An exception occurred. ", e)

samples/utilityimageformatconverter1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def grab_image():
3636
camera.Close()
3737
return result
3838
except genicam.GenericException as e:
39-
print("Could not grab an image: ", e.GetDescription())
39+
print("Could not grab an image: ", e)
4040

4141

4242
try:
@@ -67,4 +67,4 @@ def grab_image():
6767
target_image = converter.Convert(image)
6868
show_image(target_image, "Converted image.")
6969
except genicam.GenericException as e:
70-
print("An exception occurred. ", e.GetDescription())
70+
print("An exception occurred. ", e)

0 commit comments

Comments
 (0)