mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 15:32:30 +03:00
except named exception handling
This commit is contained in:
parent
af38f151a2
commit
5ca182a20d
6 changed files with 10 additions and 10 deletions
|
@ -516,7 +516,7 @@ class vcs:
|
|||
|
||||
try:
|
||||
self.gotorevisionx(rev)
|
||||
except FDroidException, e:
|
||||
except FDroidException as e:
|
||||
exc = e
|
||||
|
||||
# If necessary, write the .fdroidvcs file.
|
||||
|
@ -1602,7 +1602,7 @@ def FDroidPopen(commands, cwd=None, output=True):
|
|||
try:
|
||||
p = subprocess.Popen(commands, cwd=cwd, shell=False, env=env,
|
||||
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
except OSError, e:
|
||||
except OSError as e:
|
||||
raise BuildException("OSError while trying to execute " +
|
||||
' '.join(commands) + ': ' + str(e))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue