[Bug 2148391] Re: SyntaxWarning: 'return' in a 'finally' block
Hans Ginzel
2148391 at bugs.launchpad.net
Wed Apr 15 09:53:51 UTC 2026
** Package changed: python3-defaults (Ubuntu) => vitables (Ubuntu)
** Also affects: hplip (Ubuntu)
Importance: Undecided
Status: New
** Also affects: cupp (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/2148391
Title:
SyntaxWarning: 'return' in a 'finally' block
Status in cupp package in Ubuntu:
New
Status in hplip package in Ubuntu:
New
Status in vitables package in Ubuntu:
New
Bug description:
# apt update && apt upgrade -y
…
Setting up python3 (3.14.3-0ubuntu2)…
running python rtupdate hooks for python3.14...
/usr/share/cinnamon/cinnamon-settings/bin/CinnamonGtkSettings.py:44: SyntaxWarning: 'return' in a 'finally' block
return keyfile
/usr/share/cupp/cupp.py:146: SyntaxWarning: "\ " is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\ "? A raw string is also an option.
print(" \ # User")
/usr/share/cupp/cupp.py:147: SyntaxWarning: "\ " is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\ "? A raw string is also an option.
print(" \ \033[1;31m,__,\033[1;m # Passwords")
/usr/share/cupp/cupp.py:148: SyntaxWarning: "\ " is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\ "? A raw string is also an option.
print(" \ \033[1;31m(\033[1;moo\033[1;31m)____\033[1;m # Profiler")
/usr/share/cupp/cupp.py:149: SyntaxWarning: "\ " is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\ "? A raw string is also an option.
print(" \033[1;31m(__) )\ \033[1;m ")
/usr/share/hplip/pcard/photocard.py:329: SyntaxWarning: 'return' in a 'finally' block
return df
/usr/share/hplip/pcard/photocard.py:388: SyntaxWarning: 'return' in a 'finally' block
return total
/usr/share/hplip/pcard/photocard.py:415: SyntaxWarning: 'return' in a 'finally' block
return (total, delta)
/usr/share/hplip/pcard/photocard.py:454: SyntaxWarning: 'return' in a 'finally' block
return (total, delta)
/usr/share/hplip/pcard/photocard.py:465: SyntaxWarning: 'return' in a 'finally' block
return total
/usr/share/hplip/pcard/photocard.py:601: SyntaxWarning: 'return' in a 'finally' block
return r
/usr/share/hplip/pcard/photocard.py:655: SyntaxWarning: 'return' in a 'finally' block
return dir_tree
/usr/share/hplip/pcard/photocard.py:692: SyntaxWarning: 'return' in a 'finally' block
return exif_info
/usr/share/hplip/pcard/photocard.py:713: SyntaxWarning: 'return' in a 'finally' block
return exif_info
/usr/share/hplip/pcard/photocard.py:723: SyntaxWarning: 'return' in a 'finally' block
return data
/usr/share/hplip/prnt/cups.py:699: SyntaxWarning: 'return' in a 'finally' block
return fax_ppd,expected_fax_ppd_name, nick
/usr/share/hplip/ui5/faxsetupdialog.py:287: SyntaxWarning: 'return' in a 'finally' block
return retn
/usr/share/hplip/ui5/faxsetupdialog.py:323: SyntaxWarning: 'return' in a 'finally' block
return retn
/usr/share/vitables/vitables/filenodeutils.py:51: SyntaxWarning: 'return' in a 'finally' block
return is_filenode
/usr/share/vitables/vitables/h5db/dbstreemodel.py:618: SyntaxWarning: 'return' in a 'finally' block
return movedname
/usr/share/vitables/vitables/utils.py:661: SyntaxWarning: 'return' in a 'finally' block
return readable
running python post-rtupdate hooks for python3.14...
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: python3 3.14.3-0ubuntu2
ProcVersionSignature: Ubuntu 7.0.0-13.13-generic 7.0.0-rc7
Uname: Linux 7.0.0-13-generic x86_64
ApportVersion: 2.34.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Wed Apr 15 11:22:24 2026
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: python3-defaults
UpgradeStatus: Upgraded to resolute on 2026-02-11 (63 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cupp/+bug/2148391/+subscriptions
More information about the foundations-bugs
mailing list