diff --git a/LGTV/__init__.py b/LGTV/__init__.py
index af630fe..8893800 100644
--- a/LGTV/__init__.py
+++ b/LGTV/__init__.py
@@ -55,15 +55,14 @@ def parseargs(command, argv):
             argv[i] = True
         elif argv[i].lower() == "false":
             argv[i] = False
-        try:
+        elif argv[i].isnumeric():
             f = int(argv[i])
             argv[i] = f
+        try:
+            f = float(argv[i])
+            argv[i] = f
         except:
-            try:
-                f = float(argv[i])
-                argv[i] = f
-            except:
-                pass
+            pass
         output[a] = argv[i]
     return output