Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def check_requirements ():
try:
v = float("%d.%02d%02d" % tuple(map(int, zotero.__version__.split(r'.'))))
if v < 1.0103:
warning("Pyzotero version is incompatible. Upgrade to 1.1.3 or later.")
sys.exit(1)
except SystemExit as e:
raise e
except:
warning("Pyzotero version could not be validated. 1.1.3 or later required.")