mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-03 08:46:32 +01:00
Replace sys module with SystemExit()
This commit is contained in:
parent
bfd5275e07
commit
22b54888d9
1 changed files with 1 additions and 2 deletions
|
@ -23,7 +23,6 @@
|
|||
|
||||
|
||||
import os
|
||||
import sys
|
||||
import getpass
|
||||
|
||||
|
||||
|
@ -33,7 +32,7 @@ def s_user(user):
|
|||
"""
|
||||
if user != "root":
|
||||
print("\nslpkg: error: must have root privileges\n")
|
||||
sys.exit(0)
|
||||
raise SystemExit()
|
||||
|
||||
|
||||
def remove_repositories(repositories, default_repositories):
|
||||
|
|
Loading…
Add table
Reference in a new issue