fix: raise proper exception

master
Vishnunarayan K I 2019-07-17 20:02:04 +05:30
parent a81315c7ed
commit 61e3f2c8cd
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class _Config:
if util.check_in_path('aria2c'):
DEFAULT_CONFIG['dl']['external_downloader'] = '{aria2}'
else:
raise("Aria2 is not in path. Please follow installation instructions: https://github.com/vn-ki/anime-downloader/wiki/Installation")
raise RuntimeError("Aria2 is not in path. Please follow installation instructions: https://github.com/vn-ki/anime-downloader/wiki/Installation")
self._write_config(DEFAULT_CONFIG)