[Bug 1347834] Re: UnboundLocalError: local variable 'e' referenced before assignment in doUpdate, line 924
Max Bowsher
__ at maxb.eu
Sat Oct 18 19:26:42 UTC 2014
This appears to be a coding error. If you look at the file and line
referenced, you see the local variable 'e' being referenced, but it is
not in scope there.
It looks like the code is expecting the captured exception variable from
a previously exited 'except' block to still be in scope after the block
completes. It isn't.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1347834
Title:
UnboundLocalError: local variable 'e' referenced before assignment in
doUpdate, line 924
Status in “ubuntu-release-upgrader” package in Ubuntu:
Confirmed
Bug description:
Here's the message I got:
File
"/tmp/user/0/ubuntu-release-upgrader-y0kam4fv/DistUpgrade/DistUpgradeController.py",
line 1822, in run
return self.fullUpgrade()
File
"/tmp/user/0/ubuntu-release-upgrader-y0kam4fv/DistUpgrade/DistUpgradeController.py",
line 1724, in fullUpgrade
if not self.doUpdate():
File
"/tmp/user/0/ubuntu-release-upgrader-y0kam4fv/DistUpgrade/DistUpgradeController.py",
line 924, in doUpdate
if not e:
UnboundLocalError: local variable 'e' referenced before assignment
=== Command detached from window (Wed Jul 23 19:26:09 2014) ===
=== Command terminated with exit status 1 (Wed Jul 23 19:26:19 2014) ===
The problem persists also if I upgrade ubuntu-release-upgrader-core to
the Utopic version of the software. This was easy to try as do-
release-upgrade failed to restore my sources.list file to its previous
state as it crashed and burned.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ubuntu-release-upgrader-core 1:0.220.2
ProcVersionSignature: Ubuntu 3.13.0-30.55-generic 3.13.11.2
Uname: Linux 3.13.0-30-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: Unity
Date: Wed Jul 23 19:28:51 2014
InstallationDate: Installed on 2014-05-09 (74 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: Upgraded to trusty on 2014-07-23 (0 days ago)
VarLogDistupgradeAptlog:
Log time: 2014-07-23 19:24:30.630772
Log time: 2014-07-23 19:24:50.648009
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1347834/+subscriptions
More information about the foundations-bugs
mailing list