Skip to content

Commit

Permalink
Move the 'try' where it makes sense
Browse files Browse the repository at this point in the history
(cherry picked from commit c2fd816)
  • Loading branch information
sergiopasra committed Mar 31, 2016
1 parent 8ca9ca3 commit acb63bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion numina/user/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ def get_next_basename(self, ext):
def store(self, completed_task):
"""Store the values of the completed task."""

csd = os.getcwd()

try:
csd = os.getcwd()
_logger.debug('cwd to resultdir: %r', self.resultsdir)
os.chdir(self.resultsdir)

Expand Down

0 comments on commit acb63bd

Please sign in to comment.