Fix shutil.get_terminal_size() error handling

Issue #26801: Fix error handling in shutil.get_terminal_size(), catch
AttributeError instead of NameError. Patch written by Emanuel Barry.

test_shutil: skip the functional test using "stty size" command if
os.get_terminal_size() is missing.
diff --git a/Misc/ACKS b/Misc/ACKS
index e293ddc..6c01880 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -90,6 +90,7 @@
 Richard Barran
 Cesar Eduardo Barros
 Des Barry
+Emanuel Barry
 Ulf Bartelt
 Campbell Barton
 Don Bashford