Skip to content

Commit

Permalink
Fixed Errors in remove method.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenitzCoding committed Nov 16, 2021
1 parent 4848daa commit 777a699
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"Issue tracker": "https://github.com/Senarc-Studios/Cool-Utils/issues",
"Github": "https://github.com/Senarc-Studios/Cool-Utils/tree/Development"
},
version="1.1.8.2",
version="1.1.8.3",
packages=packages,
license="BSD",
description="This is Cool Utility tools that you can use in python.",
Expand Down
2 changes: 1 addition & 1 deletion utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
__author__ = 'BenitzCoding'
__license__ = 'BSD'
__copyright__ = 'Copyright 2021-present BenitzCoding'
__version__ = '1.1.8.2'
__version__ = '1.1.8.3'

from .compile import Compile
# from .discord import Discord
Expand Down
7 changes: 5 additions & 2 deletions utils/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,8 @@ def clear():
return

def remove( variable: str ):
del cache[variable]
return
try:
del cache[variable]
return True
except:
return False

0 comments on commit 777a699

Please sign in to comment.