Skip to content

Commit

Permalink
fix bug since python3 doesn't automatically stringify exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
pymonger committed Mar 25, 2019
1 parent ba9dc8d commit 94be5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osaka/cooperator.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __enter__(self):
self.dlock.lock(lockMetadata)
self.primary = True
except OsakaException as ose:
if not "Lock file already locked" in ose:
if not "Lock file already locked" in str(ose):
raise
self.whenLocked()
return self
Expand Down

0 comments on commit 94be5e6

Please sign in to comment.