Skip to content

Commit

Permalink
Catch all exception for unknown errors
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenceRawlings committed Jan 25, 2021
1 parent d7a480d commit 783040d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions savify/savify.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def _download(self, track: Track) -> dict:
try:
import shutil
shutil.move(output_temp, output)
except RuntimeError:
except Exception:
status['returncode'] = 1
status['error'] = "Unknown."
return status
Expand Down Expand Up @@ -240,7 +240,7 @@ def _download(self, track: Track) -> dict:
import shutil
shutil.move(output_temp, output)
added_artwork = True
except RuntimeError:
except Exception:
status['returncode'] = 1
status['error'] = "Unknown."
return status
Expand Down

0 comments on commit 783040d

Please sign in to comment.