Skip to content
Browse files

Exception swap

  • Loading branch information...
1 parent bc7b924 commit be01485b5501064b73e22a42d2d52ebbaff32f81 @jbillo committed Sep 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 musik/library/importer.py
View
2 musik/library/importer.py
@@ -39,7 +39,7 @@ def run(self):
# find the first unprocessed import task
try:
task = self.sa_session.query(ImportTask).filter(ImportTask.started == None).order_by(ImportTask.created).first()
- except ex as OperationalError:
+ except OperationalError as ex:
# Ran into this when my SQLite database was locked.
self.log.error(u'Operational error accessing database. Ensure it is not open by another process.')
break

0 comments on commit be01485

Please sign in to comment.
Something went wrong with that request. Please try again.