Browse Source

gcc didn't like us catching the runtime_error

Kolten Pearson 2 years ago
parent
commit
ae34a6304a
1 changed files with 0 additions and 5 deletions
  1. 0 5
      c_bindings/pocketpy_c.cpp

+ 0 - 5
c_bindings/pocketpy_c.cpp

@@ -13,11 +13,6 @@ using namespace pkpy;
         << "this probably means pocketpy itself has a bug!\n" \
         << "this probably means pocketpy itself has a bug!\n" \
         << e.what() << "\n"; \
         << e.what() << "\n"; \
         exit(2); \
         exit(2); \
-    } catch(std::runtime_error& e) { \
-        std::cerr << "ERROR: a std::runtime_error " \
-        << "this probably means pocketpy itself has a bug!\n" \
-        << e.what() << "\n"; \
-        exit(2); \
     } catch(...) { \
     } catch(...) { \
         std::cerr << "ERROR: a unknown exception was thrown from " << __func__ \
         std::cerr << "ERROR: a unknown exception was thrown from " << __func__ \
         << "\nthis probably means pocketpy itself has a bug!\n"; \
         << "\nthis probably means pocketpy itself has a bug!\n"; \