Skip to content

Commit

Permalink
[1] add error print
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Feb 22, 2023
1 parent 3685d60 commit b0d0854
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.7
0.9.7-develop1
5 changes: 3 additions & 2 deletions pmm_overlay_reset.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
from pmmutils.args import PMMArgs
from pmmutils.exceptions import Failed
from tmdbapis import TMDbAPIs, TMDbException
except (ModuleNotFoundError, ImportError):
except (ModuleNotFoundError, ImportError) as e:
print(e)
print("Requirements Error: Requirements are not installed")
sys.exit(0)

if sys.version_info[0] != 3 or sys.version_info[1] < 11:
print("Version Error: Version: %s.%s.%s incompatible please use Python 3.10+" % (sys.version_info[0], sys.version_info[1], sys.version_info[2]))
print("Version Error: Version: %s.%s.%s incompatible please use Python 3.11+" % (sys.version_info[0], sys.version_info[1], sys.version_info[2]))
sys.exit(0)

options = [
Expand Down

0 comments on commit b0d0854

Please sign in to comment.