Skip to content

Commit

Permalink
fix python version
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgatis committed Apr 20, 2022
1 parent f19ec10 commit 201c6f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rembg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import sys
import warnings

if not (sys.version_info.major == 3 and sys.version_info.minor == 9):
print("Python 3.9.* is required", file=sys.stderr)
sys.exit(1)
warnings.warn("This library is only for Python 3.9", RuntimeWarning)

from . import _version

Expand Down

0 comments on commit 201c6f3

Please sign in to comment.